现在的位置: 首页 > 综合 > 正文

yum 安装过程下载的包存放路径

2013年02月04日 ⁄ 综合 ⁄ 共 345字 ⁄ 字号 评论关闭

[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即安装后不保存包头和软件包

抱歉!评论已关闭.