''This article is specific to CentOS, however the packages required for yum here are the same on other flavors''
''This article is fairly specific to CentOS, however The scripts shown below install all the packages required upon which yum depends for yum here are the same on other flavours''a 386 distro (Need separate 64 bit instructions)
The below '''Please note''' - that the version numbers of the packages WILL change as later releases come out, it is up to you to ensure that the packages used are the latest. If you find a package in this script installs has become deprecated, please update this page with the latest package so others do not have to search for it as well.== CentOS 4 i386 ==<pre>PREFIX=http://vault.centos.org/4.9/os/i386/CentOS/RPMSmkdir tempcd tempwget $PREFIX/gmp-4.1.4-3.i386.rpmwget $PREFIX/readline-4.3-13.i386.rpmwget $PREFIX/python-2.3.4-14.7.el4.i386.rpmwget $PREFIX/libxml2-2.6.16-12.6.i386.rpmwget $PREFIX/libxml2-python-2.6.16-12.6.i386.rpmwget $PREFIX/expat-1.95.7-4.i386.rpmwget $PREFIX/python-elementtree-1.2.6-5.el4.centos.i386.rpmwget $PREFIX/sqlite-3.3.6-2.i386.rpmwget $PREFIX/python-sqlite-1.1.7-1.2.1.i386.rpmwget $PREFIX/elfutils-libelf-0.97.1-5.i386.rpmwget $PREFIX/elfutils-0.97.1-5.i386.rpmwget $PREFIX/rpm-4.3.3-32_nonptl.i386.rpmwget $PREFIX/rpm-python-4.3.3-32_nonptl.i386.rpmwget $PREFIX/python-urlgrabber-2.9.8-2.noarch.rpm#wget $PREFIX/centos-yumconf-4-4.5.noarch.rpmwget $PREFIX/yum-metadata-parser-1.0-8.el4.centos.i386.rpmwget $PREFIX/yum-2.4.3-4.el4.centos.noarch.rpmrpm -Uhv *.rpmyum -y update</pre> Note: CentOS 4 i386 updated 4 Apr 2012 == CentOS 4 X86_64 ==<pre>rpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/gmp-4.1.4-3.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/readline-4.3-13.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-2.3.4-14.7.el4.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/libxml2-2.6.16-12.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/libxml2-python-2.6.16-12.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/expat-1.95.7-4.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/sqlite-3.3.6-2.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/elfutils-libelf-0.97.1-5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/elfutils-0.97.1-5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/rpm-4.3.3-26_nonptl.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/rpm-python-4.3.3-26_nonptl.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpmrpm -Uvh ftp://ftp.pbone.net/mirror/ftp.centos.org/4.8/os/alpha/CentOS/RPMS/centos-yumconf-4-4.5.noarch.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpmyum -y update</pre> Note: CentOS 4 X86_64 updated 20 September 2010 == CentOS 5 i386 =='''wget''' can be installed first if not available: rpm -Uvh http://mirror.centos.org/centos/5.10/os/i386/CentOS/wget-1.11.4-3.el5_8.2.i386.rpm <pre> mkdir tmp.$$cd tmp.$$ rpm --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/readline-5.1-3.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/expat-1.95.8-11.el5_8.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-9.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-2.6.26-2.1.21.el5_9.3.i386.rpm rpm --force --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/nss-3.16.1-2.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/nspr-4.10.6-1.el5_10.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/popt-1.10.2.3-34.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/logrotate-3.7.4-14.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-4.4.2.3-34.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-libs-4.4.2.3-34.el5.i386.rpm rpm --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/elfutils-libelf-0.137-3.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm rpm --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-2.4.3-56.el5.i386.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-6.el5.noarch.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/python-libs-2.4.3-56.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/python-urlgrabber-3.1.0-6.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/libxml2-python-2.6.26-2.1.21.el5_9.3.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2.3-34.el5.i386.rpm rpm --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm rpm -Uhv *.rpmyum -y update </pre> * Updated 2016-02-13 by bglopez // Commands *required* the `--replacepkgs` for all and `--force` for nss, etc. Otherwise it would fail with dependency issues at the YUM RPMs* Hint: If it doesn't work later on, look for updated packages upon which in http://mirror.centos.org/centos/5/os/i386/CentOS/* libxml2-python-2.6.26-2.1.21.el5_9.3.i386.rpm is optional and yum depends.worked without it* yum-utils may also be added if needed
'''Please note''' == CentOS 5 x86_64 ==<pre>rpm - that the version numbers of the packages WILL change as later releases come outUvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm rpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/python-2.4.3-44.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/libxml2-2.6.26-2.1.12.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.12.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/expat-1.95.8-8.3.el5_5.3.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/sqlite-3.3.6-5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/rpm-4.4.2.3-22.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/rpm-python-4.4.2.3-22.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/m2crypto-0.16-8.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpmrpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpmyum -y update</pre>Note: Updated 21 October 2011 By Sustrai <pre>rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/libxml2-2.6.26-2.1.15.el5_8.6.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.15.el5_8.6.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/expat-1.95.8-11.el5_8.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/sqlite-3.3.6-6.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/rpm-4.4.2.3-31.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/rpm-python-4.4.2.3-31.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/m2crypto-0.16-9.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-iniparse-0.2.3-6.el5.noarch.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmrpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmyum -y update</pre>Note: Updated 27 February 2013 by Andi Licious 2016-06-09 by Lukasz Lysik <pre>rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.21.el5_9.3.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.21.el5_9.3.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-11.el5_8.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-7.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-34.el5.x86_64.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-34.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-9.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-6.el5.noarch.rpmrpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmrpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmyum -y update</pre> == CentOS 6.0 == === i386 === rpm -Uhv http://mirror.stanford.edu/yum/pub/centos/6/os/i386/Packages/{gpgme-1.1.8-3.el6.i686,nss_compat_ossl-0.9.6-1.el6.i686,pygpgme-0.1-18.20090824bzr68.el6.i686,python-iniparse-0.3.1-2.1.el6.noarch, it is up to you to ensure that the packages used are the latestpython-pycurl-7.19. If you find a package in this script has become deprecated0-8.el6.i686,python-urlgrabber-3.9.1-9.el6.noarch,rpm-python-4.8.0-47.el6.i686,yum-3.2.29-69.el6.centos.noarch,yum-metadata-parser-1.1.2-16.el6.i686, please update this page with the latest package so others do not have to search for it as wellyum-plugin-fastestmirror-1.1.30-30.el6.noarch}.rpm
=== x86_64 === rpm -Uvh Uhv http://mirror.centosstanford.orgedu/centos-4yum/4pub/os/i386/CentOS/RPMS/gmp-4.1.4-3.i386.rpm<br>rpm -Uvh http://mirror.centos.org/centos-4/46/os/i386x86_64/CentOSPackages/RPMS/readline{gpgme-41.3-131.i386.rpm<br>rpm 8-Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-2.3.4-14.4.i386el6.rpm<br>rpm x86_64,nss_compat_ossl-Uvh http://mirror0.centos.org/centos-4/4/os/i386/CentOS/RPMS/libxml2-29.6.16-101.i386el6.rpm<br>rpm x86_64,pygpgme-Uvh http://mirror0.centos.org/centos-4/4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm<br>rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/expat-1.95.7-418.i386.rpm<br>rpm -Uvh http://mirror20090824bzr68.centosel6.org/centos-4/4/os/i386/CentOS/RPMS/x86_64,python-elementtreeiniparse-1.20.6-5.el4.centos.i386.rpm<br>rpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/sqlite-3.3.61-2.i3861.rpm<br>rpm -Uvh http://mirrorel6.centos.org/centos-4/4/os/i386/CentOS/RPMS/noarch,python-sqlitepycurl-1.1.7-1.219.1.i386.rpm<br>rpm 0-Uvh http://mirror8.centosel6.org/centosx86_64,python-4/4/os/i386/CentOS/RPMS/elfutilsurlgrabber-03.979.1-48.i386el6.noarch,rpm<br>rpm -Uvh http://mirrorpython-4.centos8.org/centos-4/4/os/i386/CentOS/RPMS/rpm-python0-432.3el6.x86_64,yum-3-22_nonptl.i3862.rpm<br>rpm 29-Uvh http://mirror40.el6.centos.org/centosnoarch,yum-4/4/os/i386/CentOS/RPMS/pythonmetadata-urlgrabberparser-21.91.82-216.noarchel6.rpm<br>rpm x86_64,yum-Uvh http://mirror.centos.org/centosplugin-4/4/os/i386/CentOS/RPMS/yumfastestmirror-21.41.330-314.el4.centosel6.noarch}.rpm<br>yum -y update<br>
[[Category:HOWTO]]