How to install Yum rpm based

Posted: October 19, 2009 in CentOS, Shell Scripting

If your linux box doesn’t comes with YUM in default installation here is the step to follow on how to install YUM using rpm on CentOS 5.3 version

1. Check the OS version

1. Run the scripts on bash shell

#cat > install_yum.sh

for file in \
gmp-4.1.4-10.el5.i386.rpm \
readline-5.1-1.1.i386.rpm \
expat-1.95.8-8.2.1.i386.rpm \
python-elementtree-1.2.6-5.i386.rpm \
sqlite-3.3.6-2.i386.rpm \
elfutils-libs-0.137-3.el5.i386.rpm \
yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm \
python-sqlite-1.1.7-1.2.1.i386.rpm \
python-2.4.3-24.el5.i386.rpm \
libxml2-2.6.26-2.1.2.7.i386.rpm \
libxml2-python-2.6.26-2.1.2.7.i386.rpm \
python-sqlite-1.1.7-1.2.1.i386.rpm \
elfutils-0.137-3.el5.i386.rpm \
rpm-python-4.4.2.3-9.el5.i386.rpm \
m2crypto-0.16-6.el5.3.i386.rpm \
python-urlgrabber-3.1.0-5.el5.noarch.rpm \
yum-3.2.19-18.el5.centos.noarch.rpm
do rpm -Uvh http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/$file;
done

Press Ctl+D

2. #chmod 755 install_yum.sh

3 ./install_yum.sh

4. You can change the mirror URL to any local/ network mirror if you are using.

5. Use yum check-update command to update the package header list

6. Run Yum list to completely verify the installation.

Hope it will work for you.

r3team

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s