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,… “.
Removing cached packages and files Pros and Cons
- Removing unneeded packages – improves machine performance.
- Free up disk space.
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.
This command will delete all cached files associated with yum package manager.
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.