In this tutorial I will tell you how you can delete the cached file by yum utility. The yum utility downloads and saves the file in cache while installing a new package. If you want to spare some of the space on your system then you should delete the cache.
What is yum?
The Yellow dog Updater Modified or YUM for short is free software package management tool for linux. The YUM is open source software package, which is used in linux environment for installing, updating and uninstalling software packages.
It is very intelligent tool and it determines the dependency among the software packages. It automatically downloads and installs the packages in the dependency tree. It makes the management of software packages on linux system very easy.
Use of yum tool to clear cache
Following command is used to to delete the package data:
su -c 'yum clean headers'
If you wan to delete all the packages held in cache, you can use following command:
su -c 'yum clean packages'
This way you can free some of the space on your hard drive.
In most of the cases you just need to install the package on your linux system. After installing the package using yum tool you can delete the packages held in cache.
In this tutorial we learned how to you clean cache using yum tool.
Posted on: November 21, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles