👨‍🏫 Tutorial How to clear the yum cache on centos?

Status
Not open for further replies.

gooroog

Established
How to clear the yum cache:
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

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

yum clean headers

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

yum clean metadata

If you wish to clean all the cached files from any enabled repository at once, execute the

Following command:

yum clean all
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 2K
    Views
  • 3
    Participants
Last reply from:
Assault RifleF-2000

Trending Topics

Online now

Members online
1,083
Guests online
9,592
Total visitors
10,675

Forum statistics

Threads
2,356,832
Posts
29,394,296
Members
1,072,731
Latest member
aksel
Back
Top