copy semua paket rpm ke direktori /var/local/
[root@localhost Packages]# cp ./* /var/local/
Install paket repository createrepo-0.9.5-2.fc9.noarch.rpm
[root@localhost src]# rpm -ivh createrepo-0.9.5-2.fc9.noarch.rpm
kemudian kita edit file repo
[root@localhost ~]# cd /etc/yum.repos.d (untuk masuk ke dir /etc/yum.repos.d)
[root@localhost yum.repos.d]# ls -l (untuk melihat file yg ada dalam dir yum.repos.d)
total 16
-rw-r--r-- 1 root root 1849 2008-05-07 00:16 fedora-rawhide.repo
-rw-r--r-- 1 root root 1196 2008-10-21 13:07 fedora.repo
-rw-r--r-- 1 root root 1106 2008-10-21 13:07 fedora-updates.repo
-rw-r--r-- 1 root root 1151 2008-05-07 00:16 fedora-updates-testing.repo
[root@localhost yum.repos.d]# nano fedora.repo (menggunakan nano editor untuk edit)
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releaseve$
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever$
baseurl=file:///var/local/ ---> letak dir tempat file2x rpm yg dijadikan repositori
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-G$
sesuaikan seperti diatas tanda # untuk medisable baseurl.
perhatikan perintah di bawah layar nano editor untuk melakukan perintah-perintah pada nano editor
tanda ^ kita gunakan tombol Ctrl
Friday, October 24, 2008
Subscribe to:
Posts (Atom)