centos6 源2

来源:http://www.sh-fengwen.com 作者:驱寒暖身 人气:159 发布时间:2019-09-07
摘要:rpmfusion: centos 配置本地 yum源,centos配置yum源 修改CentOS-Media.repo时 每行代码开始不要有空格[c6-media] #库名称name=CentOS-$releasever - Media #名称描述baseurl=file:///media/centos/ #yum源目录,源地址

rpmfusion:


centos 配置本地 yum源,centos配置yum源

修改CentOS-Media.repo时 每行代码开始不要有空格

[c6-media]               #库名称
name=CentOS-$releasever - Media  #名称描述
baseurl=file:///media/centos/     #yum源目录,源地址
gpgcheck=1                #检查GPG-KEY,0为不检查,1为检查
enabled=1               #是否用该yum源,0为禁用,1为使用
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6  #gpgcheck=0时无需配置

配置本地 yum源,centos配置yum源 修改CentOS-Media.repo时 每行代码开始 不要有空格 [c6-media] #库名称name=CentOS-$releasever - Media #名称描述base...

DAG’s CentOS yum repository rpmforge




RPMforge is a collaboration of Dag and other packagers. They provide over 5000 packages for CentOS, including wine, vlc, mplayer, xmms-mp3, and other popular media tools. It is not part of Red Hat or CentOS but is designed to work with those distributions. See also Using RPMforge and Repoforge.

替换镜像



五、设置优先级别

        设置/etc/yum.repos.d/ 目录下的.repo相关文件(如CentOS-Base.repo),在这些文件中插入顺序指令:priority=N (N为1到99的正整数,数值越小越优先)一般的配置是这样的:

[base], [addons], [updates], [extras] … priority=1
[CentOSplus],[contrib] … priority=2
其他第三的软件源为:priority=N (推荐N>10)
[base]
name=CentOS-$releasever - Base
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

#released updates
[updates]
name=CentOS-$releasever - Updates
"/etc/yum.repos.d/CentOS-Base.repo" 66L, 2311C
# 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.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1

本文由美高梅游戏平台网站发布于驱寒暖身,转载请注明出处:centos6 源2

关键词:

频道精选

最火资讯