Install YUM on CentOS
Anthony Gee | Apr 07, 2010 | Comments 3
Writing this tutorial was inspired by VPS (Virtual Private Server) running with CentOS Linux without installed YUM (Yellowdog Updater, Modified). Often I am wondering why that is? If the VPS is coming with Plesk control panel installation – it is obvious – Parralels do not include YUM in their packages, and all additional modules should be installed from the Plesk Updater in order to prevent system miss configuration.
What about if you just have VPS with Linux (in this example with CentOS) without automatic updater?
If you are new with Linux – just for your information – YUM is an automatic updater and package maintainer for rpm packages. It calculates dependencies automatically it makes it easier to maintain groups of machines without having to manually update each one using RPM.
Simply copy and paste these lines in your console. Take in mind you should have root or sudo privileges.
Note: Scroll down for YUM install on CentOS previous versions.
Install YUM on CentOS 5.7 64 bit.
for file in \ gmp-4.1.4-10.el5.x86_64.rpm \ readline-5.1-3.el5.x86_64.rpm \ python-2.4.3-44.el5.x86_64.rpm \ libxml2-2.6.26-2.1.12.x86_64.rpm \ libxml2-python-2.6.26-2.1.12.x86_64.rpm \ expat-1.95.8-8.3.el5_5.3.x86_64.rpm \ python-elementtree-1.2.6-5.x86_64.rpm \ sqlite-3.3.6-5.x86_64.rpm \ python-sqlite-1.1.7-1.2.1.x86_64.rpm \ elfutils-0.137-3.el5.x86_64.rpm \ rpm-python-4.4.2.3-22.el5.x86_64.rpm \ python-libs-2.4.3-44.el5.x86_64.rpm \ m2crypto-0.16-8.el5.x86_64.rpm \ python-urlgrabber-3.1.0-6.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm \ yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm \ python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-3.2.22-37.el5.centos.noarch.rpm do rpm -Uvh --nodeps http://centos.mirror.bradiceanu.net/5.7/os/x86_64/CentOS/$file; done
Install YUM on CentOS 5.7 32 bit.
for file in \ gmp-4.1.4-10.el5.i386.rpm \ readline-5.1-3.el5.i386.rpm \ python-2.4.3-44.el5.i386.rpm \ libxml2-2.6.26-2.1.12.i386.rpm \ libxml2-python-2.6.26-2.1.12.i386.rpm \ expat-1.95.8-8.3.el5_5.3.i386.rpm \ python-elementtree-1.2.6-5.i386.rpm \ sqlite-3.3.6-5.i386.rpm \ python-sqlite-1.1.7-1.2.1.i386.rpm \ elfutils-0.137-3.el5.i386.rpm \ rpm-python-4.4.2.3-22.el5.i386.rpm \ python-libs-2.4.3-44.el5.i386.rpm \ m2crypto-0.16-8.el5.i386.rpm \ python-urlgrabber-3.1.0-6.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm \ yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm \ python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-3.2.22-37.el5.centos.noarch.rpm do rpm -Uvh --nodeps http://centos.mirror.bradiceanu.net/5.7/os/i386/CentOS/$file; done
Install YUM on CentOS 5.6 64 bit.
for file in \ gmp-4.1.4-10.el5.x86_64.rpm \ readline-5.1-3.el5.x86_64.rpm \ python-2.4.3-43.el5.x86_64.rpm \ libxml2-2.6.26-2.1.2.8.el5_5.1.x86_64.rpm \ libxml2-python-2.6.26-2.1.2.8.el5_5.1.x86_64.rpm \ expat-1.95.8-8.3.el5_5.3.x86_64.rpm \ python-elementtree-1.2.6-5.x86_64.rpm \ sqlite-3.3.6-5.x86_64.rpm \ python-sqlite-1.1.7-1.2.1.x86_64.rpm \ elfutils-0.137-3.el5.x86_64.rpm \ rpm-python-4.4.2.3-22.el5.x86_64.rpm \ python-libs-2.4.3-43.el5.x86_64.rpm \ m2crypto-0.16-6.el5.8.x86_64.rpm \ python-urlgrabber-3.1.0-6.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm \ yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm \ python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-3.2.22-33.el5.centos.noarch.rpm do rpm -Uvh --nodeps http://vault.centos.org/5.6/os/x86_64/CentOS/$file; done
Install YUM on CentOS 5.6 32 bit.
for file in \ gmp-4.1.4-10.el5.i386.rpm \ readline-5.1-3.el5.i386.rpm \ python-2.4.3-43.el5.i386.rpm \ libxml2-2.6.26-2.1.2.8.el5_5.1.i386.rpm \ libxml2-python-2.6.26-2.1.2.8.el5_5.1.i386.rpm \ expat-1.95.8-8.3.el5_5.3.i386.rpm \ python-elementtree-1.2.6-5.i386.rpm \ sqlite-3.3.6-5.i386.rpm \ python-sqlite-1.1.7-1.2.1.i386.rpm \ elfutils-0.137-3.el5.i386.rpm \ rpm-python-4.4.2.3-22.el5.i386.rpm \ python-libs-2.4.3-43.el5.i386.rpm \ m2crypto-0.16-6.el5.8.i386.rpm \ python-urlgrabber-3.1.0-6.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm \ yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm \ python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-3.2.22-33.el5.centos.noarch.rpm do rpm -Uvh --nodeps http://vault.centos.org/5.6/os/i386/CentOS/$file; done
Install YUM on CentOS 5.5 64bit :
for file in \ gmp-4.1.4-10.el5.x86_64.rpm \ readline-5.1-3.el5.x86_64.rpm \ python-2.4.3-44.el5.x86_64.rpm \ libxml2-2.6.26-2.1.12.x86_64.rpm \ libxml2-python-2.6.26-2.1.12.x86_64.rpm \ expat-1.95.8-8.3.el5_5.3.x86_64.rpm \ python-elementtree-1.2.6-5.x86_64.rpm \ sqlite-3.3.6-5.x86_64.rpm \ python-sqlite-1.1.7-1.2.1.x86_64.rpm \ elfutils-0.137-3.el5.x86_64.rpm \ rpm-python-4.4.2.3-22.el5.x86_64.rpm \ python-libs-2.4.3-44.el5.x86_64.rpm \ m2crypto-0.16-8.el5.x86_64.rpm \ python-urlgrabber-3.1.0-6.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm \ yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm \ python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-3.2.22-37.el5.centos.noarch.rpm do rpm -Uvh --nodeps http://vault.centos.org/5.5/os/x86_64/CentOS/$file; done
Install YUM on CentOS 5.5 32bit :
for file in \ gmp-4.1.4-10.el5.i386.rpm \ readline-5.1-3.el5.i386.rpm \ python-2.4.3-44.el5.i386.rpm \ libxml2-2.6.26-2.1.12.i386.rpm \ libxml2-python-2.6.26-2.1.12.i386.rpm \ expat-1.95.8-8.3.el5_5.3.i386.rpm \ python-elementtree-1.2.6-5.i386.rpm \ sqlite-3.3.6-5.i386.rpm \ python-sqlite-1.1.7-1.2.1.i386.rpm \ elfutils-0.137-3.el5.i386.rpm \ rpm-python-4.4.2.3-22.el5.i386.rpm \ python-libs-2.4.3-44.el5.i386.rpm \ m2crypto-0.16-8.el5.i386.rpm \ python-urlgrabber-3.1.0-6.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm \ yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm \ python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-3.2.22-37.el5.centos.noarch.rpm do rpm -Uvh --nodeps http://vault.centos.org/5.5/os/i386/CentOS/$file; done
Install YUM on CentOS 5.4 64bit :
for file in \ gmp-4.1.4-10.el5.i386.rpm \ readline-5.1-3.el5.i386.rpm \ python-2.4.3-27.el5.x86_64.rpm \ libxml2-2.6.26-2.1.2.8.i386.rpm \ libxml2-python-2.6.26-2.1.2.8.x86_64.rpm \ expat-1.95.8-8.2.1.i386.rpm \ python-elementtree-1.2.6-5.x86_64.rpm \ sqlite-3.3.6-5.i386.rpm \ python-sqlite-1.1.7-1.2.1.x86_64.rpm \ elfutils-0.137-3.el5.x86_64.rpm \ rpm-python-4.4.2.3-18.el5.x86_64.rpm \ m2crypto-0.16-6.el5.6.x86_64.rpm \ python-urlgrabber-3.1.0-5.el5.noarch.rpm \ yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm \ yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm \ python-iniparse-0.2.3-4.el5.noarch.rpm \ yum-3.2.22-20.el5.centos.noarch.rpm do rpm -Uvh --nodeps http://vault.centos.org/5.4/os/x86_64/CentOS/$file; done
Here is another example of how to install it. This is a manual fetch of all the .rpm packages needed for YUM installation under CentOS 4:
# cd /usr/local/src/ # mkdir youm # cd yum Now download some rpms that yum needs: # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-urlgrabber-2.9.6-2.noarch.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-sqlite-1.1.6-1.i386.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-elementtree-1.2.6-4.i386.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/python-urlgrabber-2.9.6-2.noarch.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/sqlite-3.2.2-1.i386.rpm # rpm -Uvh --nodeps *rpm Download and install yum: # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/centos-yumconf-4-4.3.noarch.rpm # wget http://centos.cs.ucr.edu/centos/4/apt/i386/RPMS.os/yum-2.4.0-1.centos4.noarch.rpm # rpm -Uvh *rpm
This second method for YUM installation on Linux systems is including more work than the first one since you have to download all packages one by one, but if you have good repository for your Linux distribution it will simple to gather the needed RPM’s.
Certainly it is easier just to copy the first example and paste it in your console if you are with CentOS 5.4. This will automatically install it after few moments depending on your connection.
If you want to install YUM on different Linux distribution, or different CentOS version – to find what dependencies it needs just download “yum – X.X.X-X. centosX.noarch.rpm” package and try to run:
rpm -Uvh yum-X.X.X-X. centosX.noarch.rpm
The system will generate all the YUM dependencies and will list it for you. Then go trough the Linux repository and collect all the packages listed. Ones you are ready just use the second method (the example with CentOS 4) to fetch and install them.
Install YUM on CentOS,Tags
- install yum centos 5 5
- install yum centos 5 7
- install yum centos
- how to install yum on centos 5 5
- install yum on centos 5 5
- jdownloader for centos
- how to install yum in centos 5 5
- centos 5 7 install yum
- install yum centos 5 4
- install jdownloader centos
- yum install centos 5 5
- download yum for centos 5 5
- install yum centos 4 7
- how to install yum centos 5 5
- centos jdownloader rpm
- how to configure yum install in centos 5 4
- configurare yum su centos 5 VPS
- sqlite browser for centos free download
- jdownloader centos 5
- how to reinstall yum on centos 5 4
About the Author: Anthony Gee is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the Onlinehowto.net website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.
Here’s my method it needs just few seconds in a text editor to be created :)
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/m2crypto-0.16-6.el5.6.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.8.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/nss-devel-3.12.3.99.3-1.el5.centos.2.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/nspr-devel-4.7.4-1.el5_3.1.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/pkgconfig-0.21-2.el5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/pkinit-nss-0.7.6-1.el5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/nspr-4.7.4-1.el5_3.1.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/libselinux-devel-1.33.4-5.5.el5.i386.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/libsepol-devel-1.15.2-2.el5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/elfutils-libelf-devel-0.137-3.el5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/rpm-devel-4.4.2.3-18.el5.x86_64.rpm
#wget http://mirrors.rit.edu/centos/5.4/os/x86_64/CentOS/sqlite-devel-3.3.6-5.x86_64.rpm
#
#rpm * -Uvh –force
——
This is for CentoOS 5.4 though.
Great! I was looking around for relaible script for YUM installation on CentOS, and most of them were using mirrors which are not present any more.
I see you are using the CentOS vault, and it works perfect!
Thank you!
Thank you, I’m constantly trying to find information about VPS services.