I have one server hosted by a third party which runs Red Hat Enterprise Linux 4 and it doesn’t have yum installed.

To install yum on Red Hat Enterprise Linux 4 you need to install the dependencies first.

Here is a quick and dirty way of doing it.

First download all the required packages.

Download the main yum rpm.

# wget http://dag.wieers.com/rpm/packages/yum/yum-2.4.2-0.4.el4.rf.noarch.rpm

Now download the dependencies…

# wget ftp://fr2.rpmfind.net/linux/PLD/dists/ac/ready/i386/libsqlite-2.8.15-1.i386.rpm

# wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-elementtree-1.2.6-7.el4.rf.i386.rpm

# wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-sqlite-0.5.0-1.2.el4.rf.i386.rpm

# wget ftp://rpmfind.net/linux/dag/redhat/el4/en/x86_64/dag/RPMS/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm

Note: Each one of the above should be on ONE line.

Now we need to install the packages.

First we install the dependencies.

# rpm -ivh libsqlite-2.8.15-1.i386.rpm

# rpm -ivh python-elementtree-1.2.6-7.el4.rf.i386.rpm

# rpm -ivh python-sqlite-0.5.0-1.2.el4.rf.i386.rpm

# rpm -ivh python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm

Now we are ready to install yum.

# rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm

Add a repository to the current ones that are installed by default.

# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm

# rpm -ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm

Now run the following commands to update and upgrade all packages.

# yum update

# yum upgrade

If you would like to add more repositories to your Yum installation, please look here for instructions.

  • Share/Bookmark