Thursday, 26 September 2013

Local Yum Setup for RHEL


Local Yum Setup for RHEL

This article helps you in YUM setup in RHEL enviroments

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