centos8 阿里源配置

点击查看代码
cat -n CentOS-Linux-AppStream.repo CentOS-Linux-BaseOS.repo CentOS-Linux-Extras.repo
1 # CentOS-Linux-AppStream.repo
2 #
3 # The mirrorlist system uses the connecting IP address of the client and the
4 # update status of each mirror to pick current mirrors that are geographically
5 # close to the client. You should use this for CentOS updates unless you are
6 # manually picking other mirrors.
7 #
8 # If the mirrorlist does not work for you, you can try the commented out
9 # baseurl line instead.
10
11 [appstream]
12 name=CentOS Linux $releasever - AppStream
13 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
14 #baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
15 baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
16 gpgcheck=1
17 enabled=1
18 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
19 # CentOS-Linux-BaseOS.repo
20 #
21 # The mirrorlist system uses the connecting IP address of the client and the
22 # update status of each mirror to pick current mirrors that are geographically
23 # close to the client. You should use this for CentOS updates unless you are
24 # manually picking other mirrors.
25 #
26 # If the mirrorlist does not work for you, you can try the commented out
27 # baseurl line instead.
28
29 [baseos]
30 name=CentOS Linux $releasever - BaseOS
31 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
32 #baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
33 baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
34
35 gpgcheck=1
36 enabled=1
37 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
38 # CentOS-Linux-Extras.repo
39 #
40 # The mirrorlist system uses the connecti
posted on 2021-12-15 09:51 Indian_Mysore 阅读(130) 评论(0) 收藏 举报
浙公网安备 33010602011771号