Yum Local Repo

Creating Local Yum repo

 

mount /dev/cdrom /mnt

 

mkdir  -p    /var/www/html/rhel6

 

cp -arv /mnt/Packages/* /var/www/html/rhel6

 

cd /mnt/Packages

rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

 

rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

 

rpm -ivh createrepo-0.9.9-18.el6.noarch.rpm

 

createrepo /var/www/html/rhel6/

 

cd /etc/yum.repos.d

 

vi /etc/yum.repos.d/local.repo
       [local-repo]
        name=rhel6.5-repo 
        baseurl=file:///var/www/html/rhel6
        enabled=1 
        gpgcheck=0

 

yum clean all

 

 yum repolist

 

Leave a Reply