Cara Membuat Repo Local Yum RHEL/CentOS
Berikut langkah untuk membuat repo local yum RHEL/CentOS dari DVD:
1. Mount dvdrom dengan command berikut:
1. Mount dvdrom dengan command berikut:
[root@localhost] cd /mnt [root@localhost] mkdir cdrom [root@localhost] df -h /dev/hda 2.9G 2.9G 0 100% /media/RHEL_5.5 i386 DVD [root@localhost] mount /dev/hda /mnt/cdromKalau menggunakan iso dvd , mount iso dengan command berikut:
mount -o loop filename.iso /mnt/cdrom (ganti filename.iso sesuai file yang digunakan, contoh: rhel6.iso)2. Edit file berikut:
/etc/yum.repo.d/repo.repo atau /etc/yum.repos.d/rhel-source.repotambahkan baris berikut:
[rhel] baseurl=file:///mnt/cdrom/Server (rhel 5.5) atau baseurl=file:///mnt/cdrom (rhel 6.2) enabled=1 gpgcheck=03. Check konfigurasi yang telah dibuat dengan menjalankan command yum :
yum list
Jika sudah muncul listnya, berarti konfigurasinya sudah sesuai.