How to install YUM on centOS

What is Yum?
" Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.

Features include:

  • Multiple Repositories
  • Simple config file
  • Correct dependency calculation
  • Fast operation
  • rpm-consistent behavior
  • comps.xml group support, including multiple repository groups
  • Simple interface"
( Font )

How to install Yum on centOS server:

Login to your server as root and create yum directory
# cd /usr/local/src/
# mkdir youm
# cd yum

Now download some rpms that yum needs:
# wget
# wget
# wget
# wget
# wget
# rpm -Uvh *rpm

Download and install yum:
# wget
# wget
# rpm -Uvh *rpm


Asen said...

Please update your links.

Dr Mike said...

Yup, the links are out of date. Get a connection refused error when I try to run though this. Granted they're probably out of date on the other end as well.

Mitchell said...

This fixed me, but you have to get the links yourself.

I used this mirror

You can get a mirror list from here:

Anonymous said...

This solution worked with a few gotchas...

Know you version:
#cat /etc/redhat-release

Then get your mirror list:

Then build your download, I used: