[root@Rhel5 packages]# cat /etc/yum.conf | grep cachedir cachedir=/var/cache/yum 这就是保存的地方 还要把/etc/yum.conf中的keepcache改成1,默认是0即安装后不保存包头和软件包