CentOS6.5源

longer3281發表於2021-01-29

現在CentOS 6的域名已經在正常提供映象的網站搜尋不到,需要到門戶的歸檔李查詢。

下面是CentOS 6的yum配置檔案內容,直接複製/etc/yum.repos.d/下面即可。

【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.

#

#


[base]

name=CentOS-6.5 - Base - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

gpgkey=


#released updates

[updates]

name=CentOS-6.5 - Updates - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

gpgkey=


#additional packages that may be useful

[extras]

name=CentOS-6.5 - Extras - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

gpgkey=


#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-6.5 - Plus - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

enabled=0

gpgkey=


#contrib - packages by Centos Users

[contrib]

name=CentOS-6.5 - Contrib - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

enabled=0

gpgkey=


######################################################################################

【檔案epel.repo】

[epel]

name=Extra Packages for Enterprise Linux 6 - $basearch

baseurl=

failovermethod=priority

enabled=1

gpgcheck=0

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

######################################################################################

最後 yum makecache fast 成功執行完成即可。



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9606353/viewspace-2754492/,如需轉載,請註明出處,否則將追究法律責任。

相關文章