Tuesday, April 7, 2015

Local repository centos

copy file-iso-centos ke /root/Desktop/file.iso

mount -o loop /root/Desktop/file.iso /mnt
cd /mnt
find Packages/ -name "*.rpm* -exec cp {} /folder_repo \;

buat file:
/etc/yum.repos.d/centosdvdiso.repo

isinya:
[centosdvdiso]
name=CentOS DVD ISO
baseurl=file:///folder_repo
enabled=1
gpgcheck=0
gpgkey=file:///mnt/RPM-GPG-KEY-CentOS-6

hapus .repo yg lain di /etc/yum.repos.d/

lakukan juga utk DVD ke 2 dst

trus:
createrepo /folder_repo
----end

No comments:

Post a Comment