资讯详情

【RHCA+】_etc_yum.conf

📅 2026/10/21 20:28:03 | 华诺云谱 👁 阅读
【RHCA+】_etc_yum.conf
“ 目录RHCA - 6 软件仓库 - 33 _etc_yum.conf ”yum默认配置文件[rootwuzuniao ~]# ll /etc/yum.conf #查看配置文件权限-rw-r--r--. 1 root root 813 Apr 15 2014 /etc/yum.conf[rootwuzuniao ~]# cat /etc/yum.conf #查看配置文件默认内容[main] #主区域cachedir/var/cache/yum/$basearch/$releasever #缓存路径keepcache0 #安装软件包后是否保留下载的软件包0为不保留debuglevel2 #调试级别logfile/var/log/yum.log #安装软件过程日志exactarch1 #从仓库中获取的版本和要求的版本必须严格匹配obsoletes1 #gpgcheck1 #是否检查软件包来源plugins1 #是否启用插件installonly_limit3 #更新软件包后保留的旧版本数量# This is the default, if you make this bigger yum wont see if the metadata# is newer on the remote and so youll 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 dont keep old packages around. If you dont like this checking# interupting your command line usage, its much better to have something# manually check the metadata once an hour (yum-updatesd will do this).# metadata_expire90m# PUT YOUR REPOS HERE OR IN separate files named file.repo# in /etc/yum.repos.d #仓库配置文件目录[rootwuzuniao ~]#
📝

华诺云谱内容团队

资深建站顾问 · 行业研究员

10年+企业数字化服务经验,专注智能建站、SEO优化与品牌营销,持续输出建站技巧、行业洞察与营销干货,已帮助5000+企业实现数字化增长。

你可能需要的服务

订阅华诺云谱资讯周报

每周一封,精选建站技巧、SEO与营销干货,直达邮箱。已有 8,000+ 企业主订阅,助你少走弯路。

↑