ARTICLE · INTELLIGENCE

战地情报 · 详情页

来自尧图项目组的一线实战观察与深度解析

【RHCA+】_etc_yum.conf

【RHCA+】_etc_yum.conf

“ 目录:RHCA+ -> 6 软件仓库 -> 33 _etc_yum.conf ”

yum默认配置文件

[root@wuzuniao ~]# ll /etc/yum.conf #查看配置文件权限

-rw-r--r--. 1 root root 813 Apr 15 2014 /etc/yum.conf

[root@wuzuniao ~]# cat /etc/yum.conf #查看配置文件默认内容

[main] #主区域

cachedir=/var/cache/yum/$basearch/$releasever #缓存路径

keepcache=0 #安装软件包后,是否保留下载的软件包,0为不保留

debuglevel=2 #调试级别

logfile=/var/log/yum.log #安装软件过程日志

exactarch=1 #从仓库中获取的版本和要求的版本必须严格匹配

obsoletes=1 #

gpgcheck=1 #是否检查软件包来源

plugins=1 #是否启用插件

installonly_limit=3 #更新软件包后,保留的旧版本数量

# This is the default, if you make this bigger yum won't see if the metadata

# is newer on the remote and so you'll "gain" the bandwidth of not having to

# download the new metadata and "pay" for it by yum not having correct

# information.

# It is esp. important, to have correct metadata, for distributions like

# Fedora which don't keep old packages around. If you don't like this checking

# interupting your command line usage, it's much better to have something

# manually check the metadata once an hour (yum-updatesd will do this).

# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo

# in /etc/yum.repos.d #仓库配置文件目录

[root@wuzuniao ~]#

RELATED READING

延伸阅读

更多一线实战笔记与深度复盘,助您持续精进