How do I install yum on CentOS 4?

If yum is not installed on your VPS/server, you can install it via SSH. First check the version of your OS. You can do that from shell:

cat /etc/redhat-release

If you are on CentOS 4, you can download the yum rpm and its required packages and install them. Typically this is what is required on a plain CentOS 4.4 vps/server:

rpm -ivh sqlite-3.3.3-1.2.i386.rpm

rpm -ivh sqlite-devel-3.3.3-1.2.i386.rpm

rpm -ivh python-elementtree-1.2.6-4.2.1.i386.rpm

rpm -ivh python-sqlite-1.1.7-1.2.i386.rpm

rpm -ivh python-urlgrabber-2.9.8-2.noarch.rpm

rpm -ivh yum-2.4.3-1.c4.noarch.rpm

You can find these rpm files from public mirrors. Here is one working at the time of writing this KB:

Note: the above are exactly for CentOS 4.4. For other versions, you may need different packages/versions. You can try installing yum rpm for your particular version and the rpm program will lead you to other required packages.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

VZPP shows MySQL and httpd down?

If you have cPanel, this is due to incompatiblity between the VPS system and cPanel. The VPS...

What name servers do I use for my domains on my VPS?

Please register your private name servers using the tutorial that applies to your domain...

I would like to change the OS (operating system) of my VPS. How can I do that?

If you would like to change the OS of your VPS, you need to take a complete backup of any of your...

Which Linux flavor do you recommend for my VPS and why?

We recommend enterprise level operating systems such as CentOS. This is because it has the most...

I have a shared/reseller account. Why should I upgrade to VPS?

VPS is a virtual private server that gives you a separate process environment not shared by other...