Yum will store the downloaded software package and header in the cache without automatically deleting them. If we feel that they are taking up disk space, we can use the yum clean command to clear them. A more accurate usage is to use yum clean headers to clear headers and yum clean packages to clear downloaded rpm packages.
Command Usage
Clear the software package under the cache directory (/var/cache/yum)
Command: yum clean packages
Clear the headers in the cache directory (/var/cache/yum)
Command: yum clean headers
three
Clear old headers from the cache directory (/var/cache/yum)
Command: yum clean oldheaders
four
Clear software packages and old headers from the cache directory (/var/cache/yum)
Command: yum clean, yum clean all (=yum clean packages; yum clean oldheaders)