Help - Search - Members - Calendar
Full Version: How to install YUM ?
The Planet Forums > Control Panels > Plesk
fdr100
I found this info about installing yum is this the way how to do it
thanks

What is yum?
Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.
yum is an excellent tool for updating, installing, and removing packages from a system. To use yum, you must install the yum client and then make sure it is properly configured.

How can I install yum?

Firstly check which rpm you need. Go to http://www..com/files/yum/ and then see which one you need for your os. Ie if you run redhat you will go to http://www..com/files/yum/redhat/ and then you would select which version, say you run redhat 9 you would go to http://www..com/files/yum/redhat/9/ and you will see 2 files in the directory. 1 will be the rpm and 1 will be the yum.conf.

Once you have got the url login to ssh and type

cd /etc

then type

rpm -Uvh http://www..com/files/yum///y...um.rpm

So for redhat 9 it would be

rpm -Uvh http://www..com/files/yum/redhat/9/yum-2.0....5-1.noarch.rpm

This will install the rpm.
Now type
mv yum.conf yum.conf.dist

and then you need to get the yum.conf

wget http://www..com/files/yum///yum.conf

so for redhat 9 it would be

wget http://www..com/files/yum/redhat/9/yum.conf

---

Quick command for redhat 9, obviously change for which os you use.

cd /etc
rpm -Uvh http://www..com/files/yum/redhat/9/yum-2.0....5-1.noarch.rpm
mv yum.conf yum.conf.dist
wget http://www..com/files/yum/redhat/9/yum.conf


---

Once you have installed YUM you should be able to use the "yum" command.

-bash-2.05b$ yum

Usage: yum [options] clean | provides | search | check-update | groupinstall | groupupdate |
grouplist >

Options:
-c [config file] - specify the config file to use
-e [error level] - set the error logging level
-d [debug level] - set the debugging level
-y answer yes to all questions
-t be tolerant about errors in package commands
-R [time in minutes] - set the max amount of time to randomly run in.
-C run from cache only - do not update the cache
--installroot=[path] - set the install root (default '/')
--version - output the version of yum
--exclude=some_pkg_name - packagename to exclude - you can use
this more than once
--download-only - only download packages - do not run the transaction
-h, --help this screen


Check what files need updating by typing

yum check-update

To update the neccessary software issue

yum update

This will attempt to upgrade the neccessary outdated rpms.
squalo
domain?
http://www..com/files/yum/........
eth00
http://www.eth0.us/yum-rhel

There is something I wrote for RHEL4 and yum. Basically all you need to do is download and install the centos yum rpms.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.