Install Yum in RHEL3

Now I have a fully updated system. Following is the brief summary of the steps I took

1) Since I was behind a proxy I had to export environment variable http_proxy.

2) Downloaded yum-2.0.8-1.noarch.rpm fromhttp://linux.duke.edu/projects/yum/download/2.0/yum-2.0.8-1.noarch.rpm

3) Installed it usingrpm –i yum-2.0.8-1.noarch.rpm

4) Configured my yum.conf to look like this:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

#base]
#name=Red Hat Linux $releasever - $basearch - Base
#aseurl=http://mirror.dulug.duke.edu/pub/yum-
repository/redhat/$releasever/$basearch/

[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

5) Downloaded the gpg key for CentOS rpm packages fromhttp://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3

6) Imported the key like this:rpm --import RPM-GPG-KEY-CentOS-3

7) Run “yum –y update”. Now Sit back and enjoy seeing your system being updated.

Enjoy!


Shahjahan Siraj

2 $type={blogger}:

Anonymous said...

Thanks a lot! This saved my life!

Anonymous said...

I left the last comment.
Only one thing to note.
Downloading yum '.noarch' rpm is unavailable at pointed url.
You can find it here instead:
http://mirror.datapipe.net/local/redhat-3ES/i386/yum-2.0.8-1.noarch.rpm

Cheers!