How to clear yum cache on CentOS linux server ?

How to clear yum cache on CentOS linux server ?

Yum - What it is ?
Yum is Yellowdog Updater, Modified. It is command line package management utility which is open source and used for Linux systems. It allows package and dependency management, automatic updates on Linux systems. By default, it deletes all downloaded files which are no longer needed after completion of task. But, we can use caching and store yum downloaded files in cache directories. It installs temporary files in this folder "/var/cache/yum/$basearch/$releasever/"

How to clear Yum Cache on server :

To clear yum cache we have to login as root. Then execute these following commands.
-----
# yum clean packages
# yum clean headers
# yum clean metadata
# yum clean all

-----

When yum downloads a package there may be chance that it may be saved or stored in cache directories. So you have to run these above commands to free yum cache memory space.
Author
bhawanisingh
Views
3,563
First release
Last update
Rating
0.00 star(s) 0 ratings
Top