Thursday, February 21, 2013

Installing YUM in CentOS 5 minimal

I’m configuring a new CentOS 5.9 server in minimal mode (without any package select).

Surprise found it didn’t come with yum installed (been with 6 too long).
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/elfutils-libs-0.137-3.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/libxml2-2.6.26-2.1.15.el5_8.6.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.15.el5_8.6.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/expat-1.95.8-11.el5_8.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/sqlite-3.3.6-6.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/rpm-python-4.4.2.3-31.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/m2crypto-0.16-9.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/python-iniparse-0.2.3-6.el5.noarch.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

2 comments:

  1. haha.. me also having problem. and more funny there are also no wget.

    rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
    Retrieving http://centos.mirror.rafal.ca/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
    error: skipping http://centos.mirror.rafal.ca/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm - transfer failed - Unknown or unexpected error

    ReplyDelete
  2. final line correction

    rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
    rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

    rpm -Uvh http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm http://centos.mirror.rafal.ca/5.9/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

    ReplyDelete