Various nuggets of useful technical information.

Thursday, June 19, 2008

Yum installation for older Linux installations

This is for certain servers that may not have yum. At the prompt:

# rpm -qa | grep python to get the python version
# rpm -qa | grep rpm to get the rpm version

.. and then click on the appropriate link on the following page to get to the download directory for the version of yum that is supported on that system.

http://linux.duke.edu/projects/yum/download.ptml

Once you're in the correct yum directory, at the prompt:
# wget url_link_for_directory_name/name_of_yum.noarch.rpm

This will download the yum rpm to the server. You can get the url link by copy and pasting from the web browser, simply type in the yum rpm name after the trailing slash.

Once downloaded you can install by running at the prompt:
# rpm -Uvh yum.version.number.rpm

Example:
So to download yum for Redhat 9, I found that it had
python 2.2 and rpm 4.2

So I clicked on the link for "yum 2.0.X - for python 2.1+ and rpm 4.1.1-4.3.1 systems: 2.0.8 latest"

Then I copied the url from the browser and added in the yum package name to get:
# wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.8-1.noarch.rpm
...which I ran from the prompt.

Then I installed it by running
# rpm -Uvh yum-2.0.8-1.noarch.rpm


No comments: