Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Install yum

4,091 bytes added, 08:18, 9 June 2016
CentOS 5 x86_64
== CentOS 4 i386 ==
<pre>
rpm -Uvh PREFIX=http://mirrorvault.centos.org/centos-4/4.9/os/i386/CentOS/RPMSmkdir tempcd tempwget $PREFIX/gmp-4.1.4-3.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/readline-4.3-13.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/python-2.3.4-14.7.el4.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/libxml2-2.6.16-12.6.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/libxml2-python-2.6.16-12.6.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/expat-1.95.7-4.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/python-elementtree-1.2.6-5.el4.centos.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/sqlite-3.3.6-2.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/python-sqlite-1.1.7-1.2.1.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/elfutils-libelf-0.97.1-5.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/elfutils-0.97.1-5.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/rpm-4.3.3-33_nonptl.el4_8.132_nonptl.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/rpm-python-4.3.3-33_nonptl.el4_8.132_nonptl.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/python-urlgrabber-2.9.8-2.noarch.rpmrpm -Uvh ftp://ftp.pbone.net/mirror/ftp.centos.org/4.8/os/alpha/CentOS/RPMS#wget $PREFIX/centos-yumconf-4-4.5.noarch.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/yum-metadata-parser-1.0-8.el4.centos.i386.rpmrpm -Uvh http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMSwget $PREFIX/yum-2.4.3-4.el4.centos.noarch.rpmrpm -Uhv *.rpm
yum -y update
</pre>
Note: CentOS 4 i386 updated 07 Jan. 20104 Apr 2012
== CentOS 4 X86_64 ==
== 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>
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/readline-5.1-3.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-2.4.3-44.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-2.6.26-2.1.12.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.12.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/expat-1.95.8-8.3.el5_5.3.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/sqlite-3.3.6-5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/rpm-python-4.4.2.3-22.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-8.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm
rpm -Uvh yum-*.rpm
yum -y update
</pre>
Note: Updated 02 January 2012 by Psyko
*Updated URL packagesmkdir 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
Noterpm --replacepkgs -Uvh http: Updated 10 June 2011 by Nico Timeo//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 * Updated URL packages.rpmyum -y update
* Changed to make it work as one big copy&paste command. (Hint: If it doesn't work later on, look for updated packages)</pre>
* If you get some complaints about rpm Updated 2016-02-13 by bglopez // Commands *required* the `--replacepkgs` for all and maybe popt`--force` for nss, you might need to use etc. Otherwise it would fail with dependency issues at the YUM RPMs* Hint: If it doesn't work later on, look for updated packages in http://mirror.centos.org/centos/5/os/i386/CentOS/* libxml2-python-2.6.26-nodeps option to get the dependencies right2.1.21.el5_9.3.i386.rpm is optional and yum worked without it* yum-utils may also be added if needed
== CentOS 5 x86_64 ==
rpm -Uvh http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm
yum -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.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpm
rpm -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.rpm
rpm -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.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/expat-1.95.8-11.el5_8.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/sqlite-3.3.6-6.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/rpm-4.4.2.3-31.el5.x86_64.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/rpm-python-4.4.2.3-31.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/m2crypto-0.16-9.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/python-iniparse-0.2.3-6.el5.noarch.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5.9/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
yum -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.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.21.el5_9.3.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.21.el5_9.3.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-11.el5_8.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-7.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-34.el5.x86_64.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-34.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-9.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-6.el5.noarch.rpm
rpm --nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
yum -y update
</pre>
Note: Updated 21 October 2011 By Sustrai
== 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,python-pycurl-7.19.0-8.el6.i686,python-urlgrabber-3.9.1-89.el6.noarch,rpm-python-4.8.0-1947.el6.i686,yum-3.2.29-2269.el6.centos.noarch,yum-metadata-parser-1.1.2-16.el6.i686,yum-plugin-fastestmirror-1.1.30-1030.el6.noarch}.rpm
=== x86_64 ===
rpm -Uhv http://mirror.stanford.edu/yum/pub/centos/6/os/x86_64/Packages/{gpgme-1.1.8-3.el6.x86_64,nss_compat_ossl-0.9.6-1.el6.x86_64,pygpgme-0.1-18.20090824bzr68.el6.x86_64,python-iniparse-0.3.1-2.1.el6.noarch,python-pycurl-7.19.0-8.el6.x86_64,python-urlgrabber-3.9.1-8.el6.noarch,rpm-python-4.8.0-1932.el6.x86_64,yum-3.2.29-2240.el6.centos.noarch,yum-metadata-parser-1.1.2-16.el6.x86_64,yum-plugin-fastestmirror-1.1.30-1014.el6.noarch}.rpm
[[Category:HOWTO]]
Anonymous user