CentOS 6.4 国内最快的YUM源安装

作者:操作系统

view plaincopy to clipboardprint?
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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.
#
#

配置EPEL YUM源

#mirrorlist=

CentOS5

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
vi /etc/yum.repos.d/CentOS-Base.repo

版本:CentOS 6.4
框架:x86_64
立异时间:每5时辰更新一遍

gpgcheck=1

Redhat 本地yum源配置 http://www.linuxidc.com/Linux/2012-11/75127.htm

[base]
name=CentOS-$releasever - Base
baseurl=



gpgcheck=1
gpgkey=
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=



gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=



gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=



gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=
gpgcheck=1
enabled=0
gpgkey=

  1. 运营yum makecache生成缓存
    [[email protected] yum.repos.d]# yum makecache
    Loaded plugins: fastestmirror
    Metadata Cache Created

[contrib]

版本:CentOS 6.4
框架:x86_64
更新时间:每5时辰更新一次

图片 1

yum的配置文件说明

#released updates

yum的安顿文件表达 http://www.linuxidc.com/Linux/2013-04/83298.htm

以下的U智跑L地址作者都证实过了在此时此刻统统能够下载,而且速度挺快。

RedHat 6.1下安装yum(图文)

#contrib - packages by Centos Users

CentOS6

修改/etc/yum.repos.d/CentOS-Base.repo,将镜象站点地址改为在中原的镜象站点地址。不然大家由此yum安装软件速度会不快。

  1. 率先备份/etc/yum.repos.d/CentOS-Base.repo
    [[email protected] ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

  2. 下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好对应备份)

# remarked out baseurl= line instead.

CentOS6

RedHat 6.2 Linux修改yum源无偿应用CentOS源

name=CentOS-$releasever - Updates

越多CentOS相关音讯见CentOS 专项论题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

YUM 安装及清理

name=CentOS-$releasever - Extras

配置EPEL YUM源 http://www.linuxidc.com/Linux/2012-10/71850.htm

6.4 框架:x86_64 更新时间:每5钟头更新一次 1. 先是备份/etc/yum.repos.d/CentOS-Base.repo [[email protected] ~]# mv /etc/yum.repos.d/CentOS-Base.repo...

2)修改CentOS-Base.repo文件。将文件中的baseurl地址修改为腾讯网163的yum源地址就可以!

RedHat 6.2 Linux修改yum源无需付费使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm

CentOS6

#mirrorlist=

图片 2

CentOS6

#mirrorlist=

# 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 - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=

CentOS5

name=CentOS-$releasever - Base - mirrors.aliyun.com

  1. 先是备份/etc/yum.repos.d/CentOS-Base.repo
    [root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

  2. 下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好对应备份)

CentOS5
# 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 - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=

#released updates

CentOS5
# 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 - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=

# 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 - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - 163.com
baseurl=
#mirrorlist=
gpgcheck=1
enabled=0
gpgkey=

# geographically close to the client. You should use this for CentOS updates

推荐阅读

Redhat 本地yum源配置

gpgcheck=1

  1. 运转yum makecache生成缓存
    [root@localhost yum.repos.d]# yum makecache
    Loaded plugins: fastestmirror
    Metadata Cache Created

引进阅读:

[root@bastion-IDC ~]# yum clean all

RedHat 6.1下安装yum(图文) http://www.linuxidc.com/Linux/2013-06/86535.htm

RedHat Linux 本地yum源的铺排

#contrib - packages by Centos Users

YUM 安装及清理 http://www.linuxidc.com/Linux/2013-07/87163.htm

[base]

RedHat Linux 本地yum源的配置 http://www.linuxidc.com/Linux/2013-08/88217.htm

baseurl=

gpgcheck=1

gpgcheck=1

#

# unless you are manually picking other mirrors.

# If the mirrorlist= does not work for you, as a fall back you can try the

gpgcheck=1

gpgkey=

#

baseurl=

# CentOS-Base.repo

        

name=CentOS-$releasever - Updates - mirrors.aliyun.com

baseurl=

[root@bastion-IDC ~]# vim /etc/yum.repos.d/CentOS-Base.repo

本文由ca88发布,转载请注明来源

关键词: ca88网址 IT笔记 ca88会员入口