x
Loading
 Loading
Hello, Guest | Login | Register

Linux Software Management with yum

With the pending release of RHEL 5, Red Hat is moving from up2date to yum. Learn the ins-and-outs of your next command line software manager.

Upgrading Software with Yum

With Yum installed and configured, you can begin using it. You might want to begin by typing the following command:

 # yum check-update 

This command checks your system against the Yum repositories configured in /etc/yum.conf and /etc/yum.repos.d/. The output of this command can be quite verbose. The command’s speed depends on the speed of your network connection and the load at the Yum repository sites. If your system needs no updates, the command returns a value of 0; if any packages need updates, the return value is 100 and the program displays a list of the packages that require updates. This command doesn’t actually download or install any packages, though.

yum check-update is a safe way to begin using yum; it shows you what the program will do when you use it to perform a system upgrade, but without actually modifying any installed packages. If you see error messages or spot upgrades you didn’t anticipate or don’t want, you can take measures to avoid the problems. For instance, you can upgrade individual packages rather than your whole system, as described shortly.

To upgrade all the packages on your system, you can type either of the following commands:

 # yum -y update # yum -y upgrade 

These commands have identical effects, except that the upgrade command activates logic in Yum for handling obsolete packages. (This same feature can be activated by using the ––obsoletes option along with…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. KDE 4.4: Does It Work Yet?
  2. Writing Custom Nagios Plugins with Python
  3. Power Up Linux GUI Apps
  4. Tweeting from the Command Line with Twyt
  5. When Memory Serves You: Using ramfs and tmpfs
Follow Linux Magazine
Rackspace