Status
Not open for further replies.

Plutost

Active Member
1,061
2008
12
0
This tutorial will guide you to install YUM on a CentOS 5.3 Server.

================
Login as root in SSH Command Prompt of your VPS

Run these commands
Code:
mkdir temp && cd temp

wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/elfutils-libelf-0.137-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-2.6.26-2.1.2.7.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.7.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/m2crypto-0.16-6.el5.3.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-2.4.3-24.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/readline-5.1-1.1.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-4.4.2.3-9.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-libs-4.4.2.3-9.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/rpm-python-4.4.2.3-9.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
This will download all the RPMs needed to install YUM
=================

Now run these commands to install those RPMs
Code:
rpm -Uvh elfutils-0.137-3.el5.i386.rpm
rpm -Uvh elfutils-libs-0.137-3.el5.i386.rpm
rpm -Uvh elfutils-libelf-0.137-3.el5.i386.rpm
rpm -Uvh expat-1.95.8-8.2.1.i386.rpm
rpm -Uvh gmp-4.1.4-10.el5.i386.rpm
rpm -Uvh libxml2-2.6.26-2.1.2.7.i386.rpm
rpm -Uvh libxml2-python-2.6.26-2.1.2.7.i386.rpm
rpm -Uvh m2crypto-0.16-6.el5.3.i386.rpm
rpm -Uvh python-2.4.3-24.el5.i386.rpm
rpm -Uvh python-elementtree-1.2.6-5.i386.rpm
rpm -Uvh python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -Uvh python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm -Uvh readline-5.1-1.1.i386.rpm
rpm -Uvh rpm-4.4.2.3-9.el5.i386.rpm
rpm -Uvh rpm-libs-4.4.2.3-9.el5.i386.rpm
rpm -Uvh rpm-python-4.4.2.3-9.el5.i386.rpm
rpm -Uvh sqlite-3.3.6-2.i386.rpm
rpm -Uvh yum-3.2.19-18.el5.centos.noarch.rpm
rpm -Uvh yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
rpm -Uvh yum-metadata-parser-1.1.2-2.el5.i386.rpm
This will install all those downloaded RPMs
Most of the RPMs would be installed by default, but it is a must to have the Latest Versions for installing YUM.

===========================
Now update the YUM by running this command
Code:
yum update yum
OR
Code:
yum -y update
===========================

Congratulations, you have successfully installed & configured YUM on your CentOS 5.3 Server.

Tutorial By - Plutost
-------------
Original Tutorial for CentOS 5.2 by Eric
Modified Tutorial for CentOS 5.3 by Plutost
 
2 comments
You can only install via download link instead :P

Centos + yum on 64bits

Code:
rpm –import [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/RPM-GPG-KEY-CentOS-5[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.7.i386.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.7.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/m2crypto-0.16-6.el5.2.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/sqlite-3.3.6-2.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/yum-metadata-parser-1.1.2-2.el5.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm[/URL]
Then finally you can execute yum update command to update the rpms.
 
You can only install via download link instead :P

Centos + yum on 64bits

Code:
rpm –import [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/RPM-GPG-KEY-CentOS-5[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.7.i386.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.7.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/m2crypto-0.16-6.el5.2.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/sqlite-3.3.6-2.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/yum-metadata-parser-1.1.2-2.el5.x86_64.rpm[/URL]
rpm -ihv [URL]http://mirror.centos.org/centos-5/5.2/os/x86_64/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm[/URL]
Then finally you can execute yum update command to update the rpms.

Ohh :D
Thanks :D
Well, I know just Basic SSH Knowledge.
But anyways, thanks for this extra tutorial.
 
Status
Not open for further replies.
Back
Top