Install yum on CentOS

So, you got your new VPS with CentOS, but it doesn’t have yum!

Well, here’s how to fix it. This tutorial will download all the RPM’s and then install them for you. To install yum, run the following (just copy and paste it):

for file in \
gmp-4.1.4-10.el5.i386.rpm \
python-2.4.3-21.el5.i386.rpm \
libxml2-2.6.26-2.1.2.1.i386.rpm \
libxml2-python-2.6.26-2.1.2.1.i386.rpm \
python-sqlite-1.1.7-1.2.1.i386.rpm \
rpm-python-4.4.2-48.el5.i386.rpm \
m2crypto-0.16-6.el5.2.i386.rpm \
python-urlgrabber-3.1.0-2.noarch.rpm \
yum-metadata-parser-1.1.2-2.el5.i386.rpm \
python-iniparse-0.2.3-4.el5.noarch.rpm \
python-elementtree-1.2.6-5.i386.rpm \
rpm-libs-4.4.2-48.el5.i386.rpm \
rpm-4.4.2-48.el5.i386.rpm \
yum-3.2.8-9.el5.centos.1.noarch.rpm
do wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/$file;
done

When this is done, run:

rpm -Uvh *.rpm
yum update -y

Yum will now be installed, and your system will be ready to go. You’re all set.

Comments

Leave a Reply