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.
- To clean the YUM cache to reclaim disk space due to corrupt metadata files.
# yum clean packages
- To delete metadata from the enabled repository, use the following command
yum clean metadata
- To delete package headers
# yum clean headers
- To clean all cached information
yum clean all