Product SiteDocumentation Site

10.3. Clearing the yum Caches

If you configure it to do so, yum retains the packages and package data files that it downloads, so that they may be reused in future operations without being downloaded again. To purge the package data files, use this command:
su -c 'yum clean headers'
Run this command to remove all of the packages held in the caches:
su -c 'yum clean packages'
When using these commands, at the prompt, enter the password for the root account.
Purging cached files causes those files to downloaded again the next time that they are required. This increases the amount of time required to complete the operation.