Thursday, December 31, 2009

YUM CONFIGURATION IN REDHAT LINUX

YUM CONFIGURATION

Features:

1. The ability to centralize packages (updates)

Installation & Setup:

1. Install 'createrepo*rpm'

2. Setup directory structure
• /srv/www/linuxcbt.com/RH5/yum

3. Run 'createrepo /srv/www/linuxcbt.com/RH5/yum'

4. Publish the yum repository using HTTP

5. Configure yum client to use HTTP to fetch the RPMs

• /etc/yum.conf
• a1. ###Included as our first repository on the SUSE box###
[0001]
• name=linuxcbtsuse1
• baseurl=http://192.168.75.100/RH5/yum

Note: Ensure that about 3GBs are available for the yum respository
tar -cjvf yum_metadata.bz2 repodata

Yum Usage:

1. Search for packages
a. 'yum search gftp'

2. Install packages - Requires RedHat GPG Key for RPMs
rpm --import http://192.168.75.100/RH5/i386/RPM-GPG-KEY-redhat-release
• 'yum -y install gftp'
• 'yum -y install gftp dhcp' installs 2 packages'

3. Remove Package
• 'yum -y remove gftp'

No comments:

Post a Comment