08 October, 2018

How to clear the yum cache on CentOS ?..

How to clear the yum cache... CentOS, Fedora, Redhat..


When a package is downloaded, installed and is removed there is a chance that the package may still be saved/stored in the yum's cache. So to clean all the cached packages from the enabled repository cache directory, login as root and execute the following:

# yum clean packages

2: To purge the old package information completely, execute the following command:

# yum clean headers

3: To clean any cached xml metadata from any enabled repository, execute the following

# yum clean metadata

4: but if you wish to clean all the cached files from any enabled repository at once, execute the following command:

# yum clean all

No comments: