Insert RHEL 6 DVD into the system
# mkdir /rhel6/dvd
# cp -rvfp/media/RHEL6DVD /rhel6/dvd
# cd /rhel6/dvd/Packages
# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
Note: If it shows up to install some dependency RPMs then install them first then continue with the above command.
# cd /etc/yum.repos.d
# mv * /tmp
# vim rhel6.repo
[RHEL6]
name=Redhat Enterprise Linux 6 Repository
baseurl=file:///rhel6
gpgcheck=0
enabled=1
# createrepo -v /rhel6/dvd
# yum clean all
# yum repolist
Now you have your local Redhat repo on your system.
# mkdir /rhel6/dvd
# cp -rvfp/media/RHEL6DVD /rhel6/dvd
# cd /rhel6/dvd/Packages
# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
Note: If it shows up to install some dependency RPMs then install them first then continue with the above command.
# cd /etc/yum.repos.d
# mv * /tmp
# vim rhel6.repo
[RHEL6]
name=Redhat Enterprise Linux 6 Repository
baseurl=file:///rhel6
gpgcheck=0
enabled=1
# createrepo -v /rhel6/dvd
# yum clean all
# yum repolist
Now you have your local Redhat repo on your system.
0 comments:
Post a Comment