Howto Yum Clean Packages

The yum package manager maintains a cache of headers and files in /var/cache/yum. Remove obsolete packages, free up disk space this is a really important to run these commands mentioned here in this post to keep your system performing really good and reduce lagging time for installing updates.

This guide is for distributions using yum package installer “RPM package manager” like Fedora, CentOS and openSUSE.

Pros and Cons
Pros:
Removing unneeded packages will improves machine performance and Free up disk space.

Cons:
Removing this packages you might need in the future, sometimes you need it in case you have similar broken packages to replace with, just to save some time for installing it directly from old ons instead of downloading those packages again.

Howto
By default, yum retains the packages and package data files that it downloads, so that they may be reused in future operations without being downloaded again. To purge the package data files, use this command:
$ yum clean headers

Run this command to remove all of the packages held in the caches:
$ yum clean packages

To clean the metadata files use this command:
$ yum clean metadata

This cache can grow rather large over time, and can be cleaned with the yum “clean” option. Clean all cached files and packages from active repository.
$ yum clean all

When using these commands, at the prompt, enter the password for the root account.

*Purging cached files causes those files to downloaded again the next time that they are required. This increases the amount of time required to complete the operation.*

Sources
Redhat documentations http://docs.redhat.com/docs/en-US/index.html
YUM guides http://yum.baseurl.org/wiki/Guides

jonboy60

I’m a Malaysian, my name is Jon Loh (jonboy60) living in Kuala Lumpur and working in Petaling Jaya, Malaysia. Jonboy60.com is a blog magazine about Linux and other open source softwares. All about to a daily jobs or real life experiences I had since the year 2002 administrating Linux and Windows server in a hosting company. Basically i will be offering Linux tips, howto, tricks, latest news and tutorial. Contact Me for Career opportunities, business offers, Linux solutions for business or home, web and email server solutions, Linux consulting and expertise requests. Email to me on jonboy60{@}gmail.com. The site I’m running is VenCouture.com – Malaysia Online Fashion Shopping Boutique, VenCouture. We sell fashion clothes, sexy lingeries, baby clothing and etc.

More PostsWebsite

Follow Me:
TwitterFacebook

Leave a Reply

Your email address will not be published. Required fields are marked *

Connect with Facebook

*


+ 4 = 8

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge