|
Portal Home > Knowledgebase > How to install YUM?
How to install YUM?
|
Most *nix systems now a days comes along with YUM (HOW-TO for only
CentOS distro.), but in-case yours doesn't, here is the perfect guide
on installing it. If you try installing YUM by yourself, you'll probably be lost in finding YUM's RPM dependencies. Use this tutorial
below and have YUM installed in a matter of few minutes if not seconds.
Enter the following commands via SSH and make sure you are logged in as root.
|
# cd /usr/src
# wget http://vault.centos.org/4.3/os/i386/CentOS/RPMS/yum-2.4.2-2.centos4.noarch.rpm
# wget http://vault.centos.org/4.3/os/i386/CentOS/RPMS/libxml2-python-2.6.16-6.i386.rpm
# wget http://vault.centos.org/4.3/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.i386.rpm
# wget
http://vault.centos.org/4.3/os/i386/CentOS/RPMS/python-sqlite-1.1.6-1.i386.rpm
# wget
http://vault.centos.org/4.3/os/i386/CentOS/RPMS/sqlite-3.2.2-1.i386.rpm
# wget http://vault.centos.org/4.3/os/i386/CentOS/RPMS/rpm-python-4.3.3-13_nonptl.i386.rpm
# wget
http://vault.centos.org/4.3/os/i386/CentOS/RPMS/python-urlgrabber-2.9.6-2.noarch.rpm
# wget
http://vault.centos.org/4.3/os/i386/CentOS/RPMS/centos-yumconf-4-4.5.noarch.rpm
# wget http://vault.centos.org/4.3/os/i386/CentOS/RPMS/rpm-4.3.3-13_nonptl.i386.rpm
|
|
NOTE:
The above RPMs are meant for CentOS 4.3, but it works as good on CentOS
4.4 and 4.5. For other RedHat based distros, please find the RPM's in
your vendor's RPM archive/mirror.
|
Next, execute the following commands in
the order listed below. Do not jumble them, if you do jumble them, YUM
will NOT be installed.
|
# rpm -Uvh rpm-4.3.3-13_nonptl.i386.rpm
# rpm -Uvh centos-yumconf-4-4.5.noarch.rpm
# rpm -Uvh python-urlgrabber-2.9.6-2.noarch.rpm
# rpm -Uvh rpm-python-4.3.3-13_nonptl.i386.rpm
# rpm -Uvh sqlite-3.2.2-1.i386.rpm
rpm -Uvh
# python-sqlite-1.1.6-1.i386.rpm
rpm -Uvh
# python-elementtree-1.2.6-4.i386.rpm
rpm -Uvh
# libxml2-python-2.6.16-6.i386.rpm
rpm -Uvh
# yum-2.4.2-2.centos4.noarch.rpm
|
YUM
should now be installed. After installing yum, please issue the
following commands to upgrade your OS and provide maximum compatibility
using YUM.
# yum -y remove glibc-dummy-centos-4
|
--
Ganesh Rao.
|
Add to Favourites
Print this Article
|
|