全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 408|回复: 4

yum开启缓存后,没有缓存出来文件

[复制链接]
发表于 2018-10-19 14:37:42 | 显示全部楼层 |阅读模式
本帖最后由 安之若素 于 2018-10-19 14:38 编辑

配置的本地yum源,

设置/etc/yum.conf 中keepcache=1
使用yum安装程序后没缓存出来rpm包

什么情况呀。。

这个是yum.log

Sep 14 14:41:39 Installed: mpfr-2.4.1-6.el6.x86_64
Sep 14 14:41:40 Installed: cpp-4.4.7-23.el6.x86_64
Sep 14 14:41:41 Installed: ppl-0.10.2-11.el6.x86_64
Sep 14 14:41:41 Installed: cloog-ppl-0.15.7-1.2.el6.x86_64
Sep 14 14:41:43 Installed: gcc-4.4.7-23.el6.x86_64
Sep 14 14:41:45 Installed: libstdc++-devel-4.4.7-23.el6.x86_64
Sep 14 14:41:46 Installed: gcc-c++-4.4.7-23.el6.x86_64
Sep 14 15:04:12 Installed: cyrus-sasl-devel-2.1.23-15.el6_6.2.x86_64
Sep 14 15:04:14 Installed: openldap-devel-2.4.40-16.el6.x86_64
Sep 14 15:04:14 Installed: expat-devel-2.0.1-13.el6_8.x86_64
Sep 14 15:04:14 Installed: apr-devel-1.3.9-5.el6_9.1.x86_64
Sep 14 15:04:15 Installed: apr-util-devel-1.3.9-3.el6_0.1.x86_64
Sep 14 15:06:10 Installed: zlib-devel-1.2.3-29.el6.x86_64
Sep 14 15:06:11 Installed: libxml2-devel-2.7.6-21.el6_8.1.x86_64
Sep 14 15:07:31 Installed: libsepol-devel-2.0.41-4.el6.x86_64
Sep 14 15:07:31 Installed: libselinux-devel-2.0.94-7.el6.x86_64
Sep 14 15:07:32 Installed: keyutils-libs-devel-1.4-5.el6.x86_64
Sep 14 15:07:32 Installed: libcom_err-devel-1.41.12-24.el6.x86_64
Sep 14 15:07:32 Installed: krb5-devel-1.10.3-65.el6.x86_64
Sep 14 15:07:34 Installed: openssl-devel-1.0.1e-57.el6.x86_64
Sep 14 15:08:48 Installed: autoconf-2.63-5.1.el6.noarch
Sep 14 15:08:49 Installed: automake-1.11.1-4.el6.noarch
Sep 14 15:08:49 Installed: libidn-devel-1.18-2.el6.x86_64
Sep 14 15:08:49 Installed: libcurl-devel-7.19.7-53.el6_9.x86_64
Sep 14 15:09:52 Installed: 2:libpng-devel-1.2.49-2.el6_7.x86_64
梁静茹 该用户已被删除
发表于 2018-10-19 14:38:53 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2018-10-19 15:21:19 | 显示全部楼层
梁静茹 发表于 2018-10-19 14:38
https://blog.csdn.net/eyefamily/article/details/7021991

看下这个文章

刚测试了一下,貌似本地镜像配置的源不缓存,只缓存互联网源的。
 楼主| 发表于 2018-10-19 15:22:36 | 显示全部楼层

是缓存rpm文件呀。你指的信息是什么,

[root@oracle packages]# pwd
/var/cache/yum/x86_64/6/base/packages
[root@oracle packages]# ll
total 5452
-rw-r--r--. 1 root root  800092 Jul  3  2011 autoconf-2.63-5.1.el6.noarch.rpm
-rw-r--r--. 1 root root  563208 Feb 24  2013 automake-1.11.1-4.el6.noarch.rpm
-rw-r--r--. 1 root root   83636 May 12  2016 elfutils-devel-0.164-2.el6.x86_64.rpm
-rw-r--r--. 1 root root   32308 May 12  2016 elfutils-libelf-devel-0.164-2.el6.x86_64.rpm
-rw-r--r--. 1 root root   28596 May 12  2016 file-devel-5.04-30.el6.x86_64.rpm
-rw-r--r--. 1 root root   29456 Oct 18  2014 keyutils-libs-devel-1.4-5.el6.x86_64.rpm
-rw-r--r--. 1 root root  516132 Mar 23  2017 krb5-devel-1.10.3-65.el6.x86_64.rpm
-rw-r--r--. 1 root root   33852 Jun 20 19:35 libcom_err-devel-1.41.12-24.el6.x86_64.rpm
-rw-r--r--. 1 root root  253132 Apr  5  2017 libcurl-devel-7.19.7-53.el6_9.x86_64.rpm
-rw-r--r--. 1 root root  140000 Jul  3  2011 libidn-devel-1.18-2.el6.x86_64.rpm
-rw-r--r--. 1 root root  140160 May 12  2016 libselinux-devel-2.0.94-7.el6.x86_64.rpm
-rw-r--r--. 1 root root   65484 Dec  9  2011 libsepol-devel-2.0.41-4.el6.x86_64.rpm
-rw-r--r--. 1 root root 1113220 Jun 23  2016 libxml2-devel-2.7.6-21.el6_8.1.x86_64.rpm
-rw-r--r--. 1 root root   23024 Sep 26  2012 lm_sensors-devel-3.1.1-17.el6.x86_64.rpm
-rw-r--r--. 1 root root  314488 Mar 23  2017 net-snmp-devel-5.5-60.el6.x86_64.rpm
-rw-r--r--. 1 root root 1227684 Mar 23  2017 openssl-devel-1.0.1e-57.el6.x86_64.rpm
-rw-r--r--. 1 root root   21560 Jul  3  2011 popt-devel-1.13-7.el6.x86_64.rpm
-rw-r--r--. 1 root root   99668 Jun 20 19:41 rpm-devel-4.8.0-59.el6.x86_64.rpm
-rw-r--r--. 1 root root   15276 May 12  2016 tcp_wrappers-devel-7.6-58.el6.x86_64.rpm
-rw-r--r--. 1 root root   44984 Feb 24  2013 zlib-devel-1.2.3-29.el6.x86_64.rpm
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-3-7 18:00 , Processed in 0.071377 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表