cat /etc/yum.conf
可以看到一些选项,其中就有:
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
很显然如果想要备份rpm包第二个改成1。