About Me

My photo
Kalyan Kumar Pasupuleti B-Tech(Information Technology). • RedHat Certified Engineer(RHCE) • Directory Services and Authentication Certificate of Expertise(LDAP) • Red Hat SELinux Policy Administration Certificate of Expertise(SELinux) • Network Services Security Certificate of Expertise (Network Services) • RedHat Certified Virtualization Administrator(RHCVA) • Red Hat Certified Security Specialist (RHCSS) Working as Cloud DevOps engineer

Wednesday, April 27, 2011

[How-To] Install yum on CentOS 4??

WARNING: According to eApps policy if you edit any system files manually, they might not support the changes you have made. Use at your own risk.

NOTE: If SQLite is installed in HSPc, do NOT uninstall it after having done this.

SSH into your VPS as root and follow these instructions.

Firstly, create a source directory to work from:

mkdir /usr/local/src/yum
cd /usr/local/src/yum

Then, download the following packages:

wget http://mirror.centos.org/centos/4/apt/i386/RPMS.os/python-urlgrabber-2.9.8-2.noarch.rpm
wget http://mirror.centos.org/centos/4/apt/i386/RPMS.os/python-sqlite-1.1.7-1.2.1.i386.rpm
wget http://mirror.centos.org/centos/4/apt/i386/RPMS.os/python-elementtree-1.2.6-5.el4.centos.i386.rpm
wget http://mirror.centos.org/centos/4/apt/i386/RPMS.os/python-urlgrabber-2.9.8-2.noarch.rpm
wget http://mirror.centos.org/centos/4/apt/i386/RPMS.os/yum-2.4.3-3.el4.centos.noarch.rpm
wget http://mirror.centos.org/centos/4/apt/i386/RPMS.os/sqlite-3.3.6-2.i386.rpm

Now install them:

rpm -Uvh *.rpm

Finally, update your system:

yum -u update

All done! Now if you want to install an application, just run:

yum -y install application

[OPTIONAL] You may also want to delete the source directory:

rm -rf /usr/local/src/yum

No comments:

Post a Comment