[root@Rhel5 packages]# cat /etc/yum.conf | grep cachedir
cachedir=/var/cache/yum 这在就是包的保存路径,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即安装后不保存包头和软件包。