We all know that Yum is an open-source command-line package, and when it is downloaded, installed, and removed, there is a high probability that it may still be stored in Yum’s cache.
Follow the commands given below 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 –
yum clean all