Wednesday, December 10, 2008

YUM Server Configuration in RHEL5 (Yellow Dog Updater Modified)

YUM Server Configuration in RHEL5 (Yellow Dog Updater Modified) -for increasing the package integrity.

Step 1: install createrepo.rpm from the DVD for creating repository.
# rpm -ivh createrepo.rpm

Step 2: copy all rpms form the DVD and past over the hard disk share them up in NFS.
#createrepo /path-to-rpms
eg: createrepo /var/ftp/pub
It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your machine.

Step 3: Touch the following file with the contents specified.
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
enabled=1
gpgcheck=0

Step 4: Use the yum server in the same machine because server is the first client of the same service most of the times
the following command is used for install gcc compiler
#yum install gcc

Note: Remember ftp or http service has to be running in the yum server.

Client configuration:
Step 1: Touch the following file with the contents specified in case of ftp server is running in the server machine
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
enabled=1
gpgcheck=0

Step 2:
the following command is used for install gcc compiler
#yum install gcc
these are the commands for removing the service specified
#yum erase gcc
#yum remove gcc
for mail server
#yum install sendmail

0 Comments: