Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Install yum

2,500 bytes added, 08:18, 9 June 2016
CentOS 5 x86_64
== CentOS 5 i386 ==
'''wget''' needs to 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>
cd tmp.$$
wget rpm --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/nssgmp-34.141.34-1810.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/nsprreadline-45.9.51-23.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/poptexpat-1.1095.2.38-3411.el5el5_8.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/logrotatem2crypto-30.716-9.4-14el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/rpmlibxml2-42.46.26-2.1.21.el5_9.3-34.el5.i386.rpm \ rpm --force --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/rpmnss-libs-43.416.1-2.3-34.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/m2cryptonspr-04.10.166-91.el5el5_10.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2popt-21.610.26-2.13-34.21.el5_9.3el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/elfutilslogrotate-03.7.1374-3.el514.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/elfutilsrpm-libelf-04.4.2.1373-334.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/elfutilsrpm-libs-04.4.2.1373-334.el5.i386.rpm \ rpm --replacepkgs -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/expatelfutils-10.95.8137-113.el5_8el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/gmpelfutils-libelf-40.1.4137-103.el5.i386.rpm \ http://mirror.centos.org/centos/5/os/i386/CentOS/readlineelfutils-libs-50.1137-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-urlgrabber2.6.26-32.1.0-621.el5_9.el53.noarchi386.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 *.rpm
</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 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 worked without it
* yum-utils may also be added if needed
== CentOS 5 x86_64 ==
</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>
== 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-2747.el6.i686,yum-3.2.29-3069.el6.centos.noarch,yum-metadata-parser-1.1.2-16.el6.i686,yum-plugin-fastestmirror-1.1.30-1430.el6.noarch}.rpm
=== x86_64 ===
Anonymous user