Previous Section  < Day Day Up >  Next Section

Recipe 2.18. Maintaining Yum

2.18.1 Problem

You want to keep downloaded RPMs from piling up on your system, or you want to ensure that Yum has fresh packages to work with.

2.18.2 Solution

Use the clean options. To delete all cached packages, use:

# yum clean packages

To force a fresh download of package headers, use:

# yum clean headers

To remove old headers that the system no longer needs, use:

# yum clean oldheaders

To remove cached packages and old headers, preserving the current headers, use:

# yum clean all

2.18.3 Discussion

It's a good idea to refresh your local package and header cache periodically, to help prevent odd errors, and to make sure installations and updates are getting current packages.

2.18.4 See Also

    Previous Section  < Day Day Up >  Next Section