Categories
Linux

Local Yum Setup for RHEL

The Yellowdog Updater, Modfied (YUM) is an Open-source command line package-management utility for RPM based Linux systems. YUM allows automatic updates, package and dependency management.

This article helps you in YUM setup in RHEL enviroments

1. Create RPM directory

root@technix#mkdir /RPMS

2. Copy all the rpm packages from disk to “/RPMS" directory

3. Install createrepo rpm

root@technix#rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm

4. createrepo

root@technix# createrepo /RPMS

5. create a local repo file in /etc/yum.repos.d

root@technix#vi /etc/yum.repos.d/local.repo

& save the below lines

[local]
name=RHEL-$releasever - Local
baseurl=file:///RPMS/
gpgcheck=0
enabled=1

6. Make yum Cache, by executing

root@technix#yum makecache

Enjoy software updates locally.

Leave a Reply

Your email address will not be published. Required fields are marked *