'yum' is a powerful software utility used to automatically update and install/remove packages on an RPM based Linux system, retrieve package information, and automatically resolve dependencies.
Originally created by Terra Soft, "yup" (Yellow Dog Updater) was improved and is now maintained by Linux@Duke team at Duke University, becoming yum (Yellow Dog Updater, Modified). yum now ships with Red Hat and works with Fedora, Mandrake, and of course Yellow Dog Linux and Y-HPC.
Before starting directly with the yum commmand line options, please be informed that dependency check is always done with the yum usage. Also the default usage will prompt for Yes/No to ask you if something is really what you wanted to do. This feature could be overriden by using the - yoption, though it is strongly suggested that you do use the default option, so that you double confirm what is happenning and also it is a good way to find out all the dependencies of a package.
Pointing to the correct server
Located in /etc/yum.conf is the means by which you may point yum to a different server. The default server (because it is "default" is also overwhelmed) is ftp.terrasoftsolutions.com/products/ydl. If the connection is slow, or if you are disconnected, you may wish try another server:
[base] #name=Yellow Dog Linux 4.1 base #baseurl=http://ftp.terrasoftsolutions.com/products/ydl/pub/yellowdog/yum/4.1/RPMS.main/ name=Yellow Dog Linux 4.1 base baseurl=http://ydl.osuosl.org/yum/4.1/RPMS.main/ [updates] #name=Yellow Dog Linux 4.1 updates #baseurl=http://ftp.terrasoftsolutions.com/products/ydl/pub/yellowdog/yum/4.1/RPMS.updates/ name=Yellow Dog Linux 4.1.1 updates baseurl=http://ydl.osuosl.org/yum/4.1.1/update/... where those lines with a # in front are original and those immediately beneath are new.
Basic yum commands
yum install php [ENTER]... this installs the latest version of a package or group of packages, satisfying all the dependencies.
yum update php [ENTER]... this updates the php package if an updated release is available for the specified package. If you would like tyo update every package that is currently installed in your system, run this command without any package name. In either case dependecies are checked and satisfied.
yum info php [ENTER]... this returns a brief introduction of the package your are going to install. You dont have to have this package installed( unlike rpm -qi). If an updated release of the package is available it will display information regarding both.
yum provides /usr/bin/php... this would return the package that installed the /usr/bin/php file. It differs from rpm -qf the same way as described for the previous one.
yum remove php... this removes the installed php package ( dependency check surely done).
There is a yum mailing list available to any user or developer of yum for the discussion of the ongoing development and usage of this awesome program. For more information, see yum official mailing lists.
For more information please visit the official yum webapge.





