Remove obsolete packages, free up disk space this is a really important to run thees commands mentioned down here from time to time to keep your system performing really good and reduce lagging time for installing updates. In this quick [How To] will show you how to remove caches for Yum package manager. check Notes before going any further.
This [How To] For distributions using yum package installer “RPM package manager” like ” Fedora, cent os, openSUSE,… “. [/note]
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.
This command will delete all cached packages from the system.
yum clean packages
This command will delete all cached files associated with yum package manager.
yum clean headers
Clean cached copies
Yum will create or download some sqlite database files as part of its normal operation. This command clean up the cached copies of those from any enabled repository cache.
yum clean dbcache
Clean Metadata files
yum clean metadata
[note]Sometimes metadata makes directory size bigger but you barely notice it, Not recommended to remove metadata[/note]
Clean all cached files and packages from active repository