Ask the Expert

Using yum vs. RPM

I've heard that yum is a good alternative to the clunky Red Hat updater. What is yum, and how can I best use it?

    Requires Free Membership to View

Looking at the home page, http://linux.duke.edu/projects/yum/, I think my memory started working again. The main problem with straightforward use of the rpm tool (at least the older versions I've played with) is this: The package you have at hand may depend on other packages that you don't have at hand. Plain rpm doesn't help you with this problem beyond reporting that specific dependancies exist. You have to go and fetch those other packages yourself, and then call rpm again. Second-generation package installers automate the retrieval and install of dependant packages, so that you get a "cascade" effect. If you install one package, everything else required is dragged in too. It's a little like cascaded updates in a relational database. Beyond that, I haven't played with yum.

The benefit of these newer systems is that you can think less -- the tool imports a flock of updates everytime you use it. The downside is that you lose a little control over the patch level of your host -- you have to operate at a higher level and keep track of everything you tell yum to do. You have to trust yum to keep the patch level of the host sanely arranged, because you can't control the system at the level of a single RPM anymore.

According to the yum docs, you can run yum with packages sourced from a central repository. So you should be able to drag down newly released packages to one spot, and then by running yum on each host, the same flow of patches should be sent to each host from that spot. Standardised and semi-automated patching.

This was first published in June 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: