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

相关推荐
李纲明1 小时前
WordPress 古腾堡点「更新」报「不是有效的 JSON 响应」:我按 REST 接口一路查下来的顺序
运维·nginx·php·wordpress·rest api
行思理1 小时前
个推厂商应用开通指南
运维·服务器·uni-app·个推·uni-app push
nazisami1 小时前
操作系统基础IO
linux·缓冲区·系统文件io·一切皆文件
龙亘川1 小时前
电子印章系统对接管理业务建模:从需求申请、接口开发到监控运维的全流程闭环
大数据·运维·人工智能·智慧城市·开源软件
zbyyd1 小时前
Linux驱动:UART串口通信、GT9147触摸屏与IIO-ADC驱动开发
linux·驱动开发·arm
研发小能1 小时前
DevOps 国产替代选型指南:从“单点替换“到“一体化平台“
运维·研发效能·devops·嘉为蓝鲸
l1t1 小时前
DeepSeek总结的本地优先的分析不需要数据库服务器
运维·服务器·数据库·人工智能·duckdb
你看我名字2 小时前
LNMP 生产架构与云运维实践:Nginx、PHP-FPM、MySQL 全链路分析
运维·nginx·架构
zbyyd2 小时前
Linux驱动:SPI子系统与ADXL345三轴加速度传感器驱动开发
linux·驱动开发·arm