Local Yum Setup for RHEL
1. Create RPM directory
#mkdir /RPMS
2. Copy all the rpm packages from disk to
/RPMS
directory
3. install createrepo rpm
#rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm
4. createrepo
# createrepo /RPMS
5. create a local repo file in /etc/yum.repos.d
#vi /etc/yum.repos.d/local.repo
& save the below lines[local]
name=RHEL-$releasever - Local
baseurl=file:///RPMS/
gpgcheck=0
enabled=1
6.
#yum makecache
Enjoy software updates locally.
No comments:
Post a Comment