CentOS纯IPv6环境下设置更新源

Linux公社

 

 

首页Linux教程

背景:

阅读新闻

CentOS纯IPv6环境下设置更新源

[日期:2012-06-24]   来源:Linux社区  作者:poozme   [字体:]  

1. CentOS下修改DNS配置文件,设置为北邮的IPv6 DNS服务器 :

[root@localhost ~]# cat /etc/resolv.conf

nameserver 2001:da8:202:10::36

2. 修改更新源配置文件:

[root@localhost ~]# vi /etc/yum.repos.d/CentOS-Base.repo

a. 注释掉 mirrorlist选项

b. 取消注释 baseurl选项

c. 修改配置文件中的URL为北交更新源地址.

d. yum update 即可

e. 安装文件: yum install PACKAGENAME


# 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=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=os

baseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#released updates

[updates]

name=CentOS-$releasever - Updates

#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=updates

baseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/updates/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras

#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=extras

baseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/extras/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=centosplus

baseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#contrib - packages by Centos Users

[contrib]

name=CentOS-$releasever - Contrib

#mirrorlist=http://mirror6.bjtu.edu.cn/?release=$releasever&arch=$basearch&repo=contrib

baseurl=http://mirror6.bjtu.edu.cn/centos/$releasever/contrib/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

CentOS 6 IPv6 关闭方法

CentOS IPv6设置

相关资讯       IPv6 

   

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/21686.html