This howto describe how to install yum on CentOS 5.2 VPS. VPS (Virtual Private Servers) usually comes cheap to install, administrate and manage LINUX with administrated (root) priviliges. In this way you have fully fuctional LINUX available to work on it. But some of the host provide very basic template of CentOS 5.2 for VPS which only install minimal amount of software to run these VPS. I came across one of my VPS with very minimal installation and which doesn’t have YUM install in it. YUM (Yellow Update Manager) is a very necessary tool now a days to install any software from internet using online repository without getting any getting problems of dependencies.
So I decided to install yum software with all depended softwares from CentOS.org site using rpm command. First you have to get to any mirror site of CentOS which contain CentOS 5.2 rpms.
The best part of this howto is you have to just install the necessary softwares and everything will be ready after install. The following packages will be needed to install YUM software successfully.
It may be possible that some of the above software are already installed and may be some more depended software needed. For more software you just have to add any other depended software full URL to the following command which i will used to install yum.
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2-48.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-6.el5.2.i386.rpm
As soon as installation completed, you have fully functional YUM is available and now you can use any command to test successfull installation, usually i used
To check the available software for distribution I am using.