1、今天是2019.11.18,由於CentOS 6比較舊了,國內的鏡像和官方的主幹都刪除掉了,所以配置到官方的vault.centos.org這個路徑下。
2、此倉庫也適用於NeoKyln3.2(內核爲Linux HuNanKylin 2.6.32-431),所以,呵呵。 但僅供參考,謹防系統崩了。
sudo vi /etc/yum.repo.d/Cent-6.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-x86_64 - Base
failovermethod=priority
baseurl=http://vault.centos.org/6.5/os/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-x86_64 - Updates
failovermethod=priority
baseurl=http://vault.centos.org/6.5/updates/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-x86_64 - Extras
failovermethod=priority
baseurl=http://vault.centos.org/6.5/extras/x86_64/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-x86_64 - Plus
failovermethod=priority
baseurl=http://vault.centos.org/6.5/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-x86_64 - Contrib
failovermethod=priority
baseurl=http://vault.centos.org/6.5/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6