centos7过期源添加

背景

centos7的支持已经没有了,源也移动到其它的路径,还是有环境需要用

源内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[root@lab101 yum.repos.d]# cat CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=https://mirrors.aliyun.com/centos-vault/7.9.2009/os/x86_64
gpgcheck=0

[updates]
name=CentOS-$releasever - Updates
baseurl=https://mirrors.aliyun.com/centos-vault/7.9.2009/updates/x86_64/
gpgcheck=0

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.aliyun.com/centos-vault/7.9.2009/extras/x86_64/
gpgcheck=0

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://mirrors.aliyun.com/centos-vault/7.9.2009/extras/x86_64/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[epel]
name=epel
baseurl=https://mirrors.aliyun.com/epel-archive/7/x86_64
gpgcheck=0
enabled=1

替换成上面的即可

ceph的老版本源

1
2
3
4
5
6
7
8
9
10
11
[ceph]
name=ceph
baseurl=https://mirrors.tuna.tsinghua.edu.cn/ceph/rpm-15.2.17/el7/x86_64/
gpgcheck=0
enabled=1

[ceph-noarch]
name=ceph-noarch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/ceph/rpm-15.2.17/el7/noarch/
gpgcheck=0
enabled=1

下载deploy

1
wget https://mirrors.aliyun.com/ceph/rpm-luminous/el7/noarch/ceph-deploy-2.0.1-0.noarch.rpm