yum源说明
在我的《rpm补充篇》一文中提到了软件包之间存在依赖关系,也在结尾的注释中提到了yum
可以根据储存有这种依赖关系的文件实现傻瓜式安装和卸载,接下来我将简单介绍一下操作过程。
在使用之前,先要确保yum源文件中是否配置正确。
在 /etc/yum.repos.d/
目录下存在着这些.repo
文件:
这就是yum源文件,这里以CentOS-Base.repo
为例解释一下其中内容:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
# 上面是说明