使用centos6系列的小伙伴应该发现了,所有centos6里面,都有readme,提示
The whole CentOS 6 is *dead* and *shouldn't* be used anywhere at *all*
如果想用的话,可以使用光盘自建源!
yum install httpd -y
mount -o loop /opt/CentOS-6.10-x86_64-minimal.iso /var/www/html/CentOS-6.10
修改源
cat /etc/yum.repos.d/CentOS-Base.repo
[base]
name=base - $basearch
baseurl=
enabled=1
gpgcheck=1
gpgkey=/RPM-GPG-KEY-CentOS-6
也可以使用vault.centos.org当临时源,国外的,会比较慢
wget
cat centos-vault.sh
#!/bin/bash
version=`cat /etc/redhat-release |awk '{printf $3}'`
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
cat >/etc/yum.repos.d/CentOS-Base.repo<
[centos-vault]
name=centos-vault
failovermethod=priority
baseurl=
gpgcheck=1
gpgkey=RPM-GPG-KEY-CentOS-6
EOF
bash -x centos6-vault.sh
epel的源也无法使用,可以装地址改成
cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
baseurl=
failovermethod=priority
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
[epel-debuginfo]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
baseurl=debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
gpgcheck=0
[epel-source]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
baseurl=
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
gpgcheck=0
阅读(3815) | 评论(0) | 转发(1) |