- Create a “installyum.sh” file:
vi installyum.sh - Paste the code below inside
- Change the [mirror-site-address] to somewhere near you. The list can be found at CentOS’s Website. Remember to change
i386tox86_64if you are using 64 bit system. - Press
Shift+ZZto save and exit - Grant executable right to the file:
chmod +x installyum.sh - Run the script:
./installyum.sh
Here’s the shell script.
for file in \
gmp-4.1.4-10.el5.i386.rpm \
readline-5.1-3.el5.i386.rpm \
python-2.4.3-27.el5.i386.rp \
libxml2-2.6.26-2.1.2.8.i386.rpm \
libxml2-python-2.6.26-2.1.2.8.i386.rpm \
expat-1.95.8-8.3.el5_4.2.i386.rpm \
python-elementtree-1.2.6-5.i386.rpm \
sqlite-3.3.6-5.i386.rpm \
python-sqlite-1.1.7-1.2.1.i386.rpm \
elfutils-libelf-0.137-3.el5.i386.rpm \
elfutils-0.137-3.el5.i386.rpm \
popt-1.10.2.3-18.el5.i386.rpm \
rpm-libs-4.4.2.3-18.el5.i386.rpm \
rpm-4.4.2.3-18.el5.i386.rpm \
rpm-python-4.4.2.3-18.el5.i386.rpm\
m2crypto-0.16-6.el5.6.i386.rpm \
python-urlgrabber-3.1.0-5.el5.noarch.rpm \
python-iniparse-0.2.3-4.el5.noarch.rpm \
yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm \
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm \
yum-3.2.22-26.el5.centos.noarch.rpm
do rpm -Uvh --nodeps http://[mirror-site-address]/Linux/CentOS/5.5/os/i386/CentOS/$file;
done
Read More