YUM = Yellow Dog Update Manager

To start with this topic we will see the requirements first which are required to setup Yum server

Requirements =

1. vsftpd- —- > Probably the most secure and fastestFTP server for UNIX-like systems
2. createrepo-0.4.4-2.0.fc6.noarch.rpm —> To create Repositories

Now The Configuration

Step 1.

a. rpm -ivh vsftpd- —> Installing vsftpd server

b. rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm –> Installs Create repo

Setp 2. Copy all the rpms from the RHEL 5 CD to /var/ftp/pub Folder

command —> cd /media/RHEL5DVD/ { go to your RHEL 5 DVD }

command —> cp -avr * /var/ftp/pub/

Step 3. cp /media/RHEL_5.4\ i386\ DVD/Server/repodata/comps-rhel5-server-core.xml / —–> this will copy the comps-rhel5 –.xml file to / ( root) from the DVD rom

Step 4. Now time to create repo

command –> createrepo -g /comps-rhel5-server-core.xml /var/ftp/pub/Server/

The above command will create the required Repositories

Step 5. Now go to Client machine and do cd /etc/yum.repos.d/

Step 6. cp rhel-debuginfo.repo base.repo –> will create base.repo file

Step 7. Editing base.repo –>

[base] —> change it to base
name=Red Hat Enterprise Linux $releasever – $basearch – Debug
baseurl= –> yum server ip and full path
enabled=1 —-> this value is by default 0 make it 1
gpgcheck=0 —–> and this value is by default 1 make it 0

Remove the last line of gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

save the changes and quit

Step 8. vim rhel-debuginfo.repo

name=Red Hat Enterprise Linux $releasever – $basearch – Debug
enabled=0 —-> change the value to 0
gpgcheck=1 —-> change the value to 1

Step 9. now try to rum yum install -y package name