configure you local yum repository on REDHAT ENTERPRISE LINUX 6
1)mount REDHAT EL6 DVD IN TO /mnt
#mount /dev/cdrw /mnt
2) copy rpms from Packages directory into /opt/repo
#cd /mnt/Packages
#mkdir -p /opt/repo
#cp *.* /opt/repo
3)verify reporcrete utility rpm installation
#rpm -qa repocreate*
if not installed then install it with its dependancies
#rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm deltarpm* python-deltarpm*
4)create repository under /opt/repo
#createrepo `pwd`
5) add your repo configuration details in yum configuration file /etc/yum.conf
add the below line under this /etc/yum.conf
"# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d"
[base-local]
name=RHEL6 $releasever - $basearch
failovermethod=priority
baseurl=file:/opt/repo
enabled=1
gpgcheck=0
6)check your current local repository
#yum repolist
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
repo id repo name status
base-local RHEL6 6Server - x86_64 3,544
repolist: 3,544
No comments:
Post a Comment