How to clean yum cache on CentOS? Print

  • 0

We all know that YUM is an open-source command-line package. When a package is downloaded, installed, and removed there are maximum chances that the package may still be stored in YUM’s cache. 

Follow the below commands in order to clean the YUM cache.

  1. To clean the YUM cache to reclaim disk space due to corrupt metadata files.

    # yum clean packages
  2. To delete metadata from the enabled repository, use the following command

     yum clean metadata
  3. To delete package headers 

    # yum clean headers
  4. To clean all cached information  

    yum clean all

Was this answer helpful?

« Back
Sign up for a newsletter

chat