【工欲善其事,必先利其器】
# yum install -y wget
# mkdir /etc/yum.repos.d/bak
# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak
# wget -O /etc/yum.repos.d/CentOS-Base.repo
# wget -O /etc/yum.repos.d/epel.repo
# cat >> /etc/yum.repos.d/ceph.repo << EOF
[ceph]
name=ceph
baseurl=
gpgcheck=0
[ceph-noarch]
name=cephnoarch
baseurl=
gpgcheck=0
[ceph-source]
name=ceph-source
baseurl=
gpgcheck=0
EOF
# sed -i '/aliyuncs/d' /etc/yum.repos.d/CentOS-Base.repo
# sed -i 's/python/python2/' /usr/bin/yum
# sed -i 's/python/python2/' /usr/libexec/urlgrabber-ext-down
# yum clean all
# yum makecache
# yum repolist
阅读(663) | 评论(0) | 转发(0) |