Installing YUM in RHEL 3
This will allow users to install yum in RHEL 3 and set its repository to CentOS 3. Installing yum in RHEL 3 will allow easy installation of packages via internet.
So let us start installing yum in RHEL 3
First we will download yum from dag rpm repository.
[mylogin@hostname folder]# wget http://dag.wieers.com/rpm/packages/yum/yum-2.0.8-0.1.el3.rf.noarch.rpm
[mylogin@hostname folder]# rpm -ivh yum*
[mylogin@hostname folder]# /etc/yum.conf
Append the following lines:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/3/os/i386/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.centos.org/centos/3/updates/i386/
gpgcheck=1
Installing GPG key for YUM repository
Downloaded the gpg key for CentOS rpm packages. This serves as an authentication to the packages that were downloaded prior to installation. Unable to import gpg key will not install the downloaded package and users are at risk from compromised package.
[mylogin@hostname folder]# wgethttp://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
[mylogin@hostname folder]# dos2unix RPM-GPG-KEY-CentOS-3
[mylogin@hostname folder]# rpm --import RPM-GPG-KEY-CentOS-3
Update YUM package
[mylogin@hostname folder]# yum -y update yum
[mylogin@hostname folder]# yum install centos-yumconf
[mylogin@hostname folder]# yum install centos-yumcache
That's it we are done installing yum in RHEL 3 and is now using CentOS repository.
Tell a friend
Previous page: Using MySQL database for squirrelmail Global address book Next page: Install pear packages behind proxy server

