By default, yum deletes the RPM files it downloads after it has installed them. To keep these RPM files, edit /etc/yum.conf and change:
Now, yum will keep a copy of all the RPM files it downloads in /var/cache/yum.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.