Editing Install yum

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 65: Line 65:
 
cd tmp.$$
 
cd tmp.$$
  
rpm --replacepkgs -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.10/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.10/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.10/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.10/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
+
         http://mirror.centos.org/centos/5.10/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 \
+
rpm -Uvh http://mirror.centos.org/centos/5.10/os/i386/CentOS/nss-3.14.3-18.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.10/os/i386/CentOS/nspr-4.9.5-2.el5.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.10/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.10/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.10/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
+
         http://mirror.centos.org/centos/5.10/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 \
+
rpm -Uvh http://mirror.centos.org/centos/5.10/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.10/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
+
         http://mirror.centos.org/centos/5.10/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 \
+
rpm -Uvh http://mirror.centos.org/centos/5.10/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.10/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.10/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.10/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.10/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.10/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.10/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
+
         http://mirror.centos.org/centos/5.10/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 \
+
rpm -Uvh http://mirror.centos.org/centos/5.10/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.10/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
+
         http://mirror.centos.org/centos/5.10/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
  
 
rpm -Uhv *.rpm
 
rpm -Uhv *.rpm
Line 100: Line 100:
 
</pre>
 
</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/
 
* 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
 
* 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
 
* yum-utils may also be added if needed
 +
* Updated on 2013-11-22 by Ap.Muthu
  
 
== CentOS 5 x86_64 ==
 
== CentOS 5 x86_64 ==

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)