Networking - YUM

Downloading and installing applications with yum

The Yellow Updater, Modified (yum) software packages lets you install and update selected software packages in RPM format from software repositories on the web. Once you know the software package that you want, yum is probably the best way to download and install that package.

The yum package is included on the Fedora Core CDs.

Configuring yum(/etc/yum.conf)

The /etc/yum.conf file already comes preconfigured to be able to install Fedora Core base system package as well as update.

[root@www root]# vi /etc/yum.conf
[freshrpms-fc-1]
name=Freshrpms packages for Fedora Core 2
baseur1=http://ayo.freshrpm.net/fedora/linux/2/i386/freshrpms

Running yum to download and install RPMs

Here is an example of using the yum command to download the mplayer media player.

[root@www root]# yum install mplayer
Gathering header information file(s) From Server(s)
Server: Fedora Core 2
Server: Freshrpms packages for Fedora Core 2
Finding Update Packages
Downloading needed headers
. . Dependencies resolved
I will do the following:
[install : mplayer1.0-0.9.20040415.f.fc2.fr.i386]
I will Install / Upgrade these to satisfy the dependencies:
.
.
Is This Ok [Y / N] : Y

ð It will start downloading all the necessary rpm.

[root@www root]# yum check-update

ð The check-update option cause yum to check the software repositories for available updated versions of RPM packages you have installed.

[root@www root]# yum update nmap-fronted

ð To update the nmap-fronted package.

[root@www root]# yum list | less

ð If you want to see a list of all packages that are available for download.

[root@www root]# yum provides missingfile

ð To check for packages that include the missing file using the provides option.