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

相关推荐
yyzc111114 小时前
当中小微实体店面临经营困境时如何借助顺成汇创旗下荟生意品牌实现数字化智慧营销
大数据·运维·人工智能
Rsingstarzengjx6 小时前
第三十九章 Linux PWM 驱动实验
linux·运维·服务器
SeanQhl7 小时前
BoostKit 环境准备
linux·openeuler·鲲鹏·boostkit·软件源
笔记本note9 小时前
Linux 内存管理
linux·服务器·内存管理
郝学胜-神的一滴9 小时前
Effective STL 条款 14:用扩容函数避免重新分配
linux·开发语言·网络·数据结构·c++·单片机
GeW10 小时前
入行 Linux 与数据库运维:一条路径、三项习惯、一个考证观
linux·数据库
南子北游12 小时前
Linux 进程状态全景(上)
linux·运维·服务器
yyzc1111113 小时前
AI聚合支付搭配数字门店系统让实体店告别粗放经营
大数据·运维·人工智能
分布式存储与RustFS14 小时前
浏览器调 RustFS 的 S3 接口被拦下来?两个 CORS 变量分开管 9000 和 9001
运维·云原生·开源·对象存储·分布式存储·s3·性能基准
吴建旭 智宅焕14 小时前
智能家居全国交付中兜底型基础设施的三大能力架构设计与实现
运维·智能家居·devops