[root@Rhel5 packages]# cat /etc/yum.conf | grep cachedir
cachedir=/var/cache/yum
这就是保存的地方,
[root@Rhel5 packages]# ll
total 100
-rw-r--r-- 1 root root 94864 Nov 13 05:16 hwbrowser-0.30-2.el5.noarch.rpm
[root@Rhel5 packages]# pwd
/var/cache/yum/rhel-debuginfo/packages
[root@Rhel5 packages]# cat /etc/yum.conf | grep keep
keepcache=1
还要把/etc/yum.conf中的keepcache改成1,默认是0即安装后不保存包头和软件包