Low Orbit Flux Logo 2 D

How to clean YUM cache

It can be a good idea clean out your YUM cache from time to time to free up disk space and to potentially resolve issues.

Clean all cached info:


yum clean all

Remove cached packages:


yum clean packages

Remove metadata for each repo:


yum clean metadata

Remove package headers:


yum clean headers

Clean the yum cache for untracked repos ( I haven’t tested this but it should work ):


rm -rf /var/cache/yum