更改centos yum 成中国镜像加快yum速度
来源:互联网 发布:苹果电脑安装办公软件 编辑:程序博客网 时间:2024/04/28 19:07
此外还有新浪的和163的开源镜像地址。我用的是中国科技大学的速度不错。
#进入路径
cd /etc/yum.repos.d/
#备份 CentOS-Base.repo
mv CentOS-Base.repo CentOS-Base.repo.bak
#vi 编辑
vi CentOS-Base.repo
#把分割线以内的粘贴进去,这里www.iamle.cn使用的是secureCRT管理软件。
#———————————–分割线以内的———————————————–
# 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://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever – Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever – Addons
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://centos.ustc.edu.cn/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#———————————–分割线以内的———————————————–
简单的说就是把mirrorlist注释掉,将baseurl改成centos.ustc.edu.cn的镜像地址。
按 esc 后 输入 : 然后输入 qw! 即可。
yum update 测试~
- 更改centos yum 成中国镜像加快yum速度
- [Linux]CentOS修改YUM镜像地址提高下载速度
- centos更改yum源
- 更改 centos yum 源
- 更改 centos yum 源
- CentOS 更改yum源
- CentOS更改yum源
- CentOS更改yum源
- centos 更改yum 源
- Centos YUM源 中国科技大学镜像
- CentOS系统 yum 国内镜像
- Centos yum源服务器国内镜像
- 怎样加快 fedora yum的下载速度
- 更改centos 5 yum源
- centos更改163yum源
- 更改CentOS 6.5 yum源
- redhat6更改centos yum源
- yum 镜像
- 动态创建gridpanel
- java学习笔记5_HelloWorld 和 public static void main(String[] args)
- CentOS yum 命令
- zero copy architecture in RDK of TI 8168 EVM
- Android Permission 中英对照
- 更改centos yum 成中国镜像加快yum速度
- CentOS 5.X 安装 GForge ,安装 postgresql
- soa技术,webservice,soap
- Service组件 startService() bindService()
- 小玩具——单词词频统计
- Android学习第16课—SQLite的简单使用
- Struts2简介
- Hibernate一对一 主键关联映射(one-to-one)
- difference with Macro and Template