【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 \~#

相关推荐
2601_967987374 小时前
安装 Redis 或 Redis Stack
linux·windows·redis·macos·安装
feng_you_ying_li4 小时前
linux之数据链路层
linux·网络·智能路由器
修己xj4 小时前
服务器无法解析域名?一次 DNS 配置缺失的排查与修复
运维
GeW5 小时前
高端化走到深处,是数据库和Linux的事
linux
程序员初一6 小时前
Linux 远程桌面有四种做法
linux·ssh
程序开发阿元7 小时前
1C1G 能跑什么:把留常驻服务和不留摆进一张内存表
linux·ssh
xbzb9 小时前
自定义 yum 软件源:Linux 上 createrepo,Windows 上纯 Python 也能造
linux·运维·windows·python·yum·createrepo
Android系统攻城狮9 小时前
Linux FFmpeg深度解析之avio_open调用流程与实战(三十八)
linux·运维·服务器·ffmpeg·音视频进阶·ffmpeg音视频
独隅9 小时前
WebStorm Linux 版安装实战与核心效能展示
linux·ide·webstorm
瑞克-桑切斯10 小时前
ERP 企业生产管理系统部署手册
运维·docker·云原生·容器·eureka