Cleaning Yum Repositories

Last Updated on

Occasionally you should clean out the cache and older package caches from any linux system.  On RHEL based systems which use Yum as a package manager, the following commands will cleanup your install.  Just to be thorough, the first command updates all of your system packages before any maintenance occurs.

1
2
3
4
5
6
7
yum-complete-transaction
yum update -y
yum clean packages
yum clean metadata
yum clean headers
yum clean all
yum autoremove

Cleaning Repositories on Ubuntu

Lima

About the author

Lima is the visual nautical indicator for "stop instantly."

Comments

Leave a Reply