Last active
October 23, 2024 06:01
-
-
Save weimeng23/73a1878ce5dce8527bf68dde3e8c11e7 to your computer and use it in GitHub Desktop.
aliyun centos7 yum mirror repo. CentOS Linux 7 reached end of life (EOL) on June 30, 2024
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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-$releasever - Base - mirrors.aliyun.com | |
failovermethod=priority | |
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/ | |
http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/ | |
http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/ | |
gpgcheck=1 | |
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 | |
#released updates | |
[updates] | |
name=CentOS-$releasever - Updates - mirrors.aliyun.com | |
failovermethod=priority | |
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/ | |
http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/ | |
http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/ | |
gpgcheck=1 | |
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 | |
#additional packages that may be useful | |
[extras] | |
name=CentOS-$releasever - Extras - mirrors.aliyun.com | |
failovermethod=priority | |
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/ | |
http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/ | |
http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/ | |
gpgcheck=1 | |
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 | |
#additional packages that extend functionality of existing packages | |
[centosplus] | |
name=CentOS-$releasever - Plus - mirrors.aliyun.com | |
failovermethod=priority | |
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/ | |
http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/ | |
http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/ | |
gpgcheck=1 | |
enabled=0 | |
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 | |
#contrib - packages by Centos Users | |
[contrib] | |
name=CentOS-$releasever - Contrib - mirrors.aliyun.com | |
failovermethod=priority | |
baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/ | |
http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/ | |
http://mirrors.cloud.aliyuncs.com/centos/$releasever/contrib/$basearch/ | |
gpgcheck=1 | |
enabled=0 | |
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CentOS-SCLo-rh.repo | |
# | |
# Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more | |
# information | |
[centos-sclo-rh] | |
name=CentOS-7 - SCLo rh | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/rh/ | |
# mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-rh | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
[centos-sclo-rh-testing] | |
name=CentOS-7 - SCLo rh Testing | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/rh/ | |
gpgcheck=0 | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
[centos-sclo-rh-source] | |
name=CentOS-7 - SCLo rh Sources | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/Source/rh/ | |
gpgcheck=1 | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
[centos-sclo-rh-debuginfo] | |
name=CentOS-7 - SCLo rh Debuginfo | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/ | |
gpgcheck=1 | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CentOS-SCLo-sclo.repo | |
# | |
# Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more | |
# information | |
[centos-sclo-sclo] | |
name=CentOS-7 - SCLo sclo | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/sclo/ | |
# mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=7&repo=sclo-sclo | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
[centos-sclo-sclo-testing] | |
name=CentOS-7 - SCLo sclo Testing | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/sclo/ | |
gpgcheck=0 | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
[centos-sclo-sclo-source] | |
name=CentOS-7 - SCLo sclo Sources | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/Source/sclo/ | |
gpgcheck=1 | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
[centos-sclo-sclo-debuginfo] | |
name=CentOS-7 - SCLo sclo Debuginfo | |
baseurl=http://mirrors.aliyun.com/centos/7/sclo/$basearch/ | |
gpgcheck=1 | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[epel] | |
name=Extra Packages for Enterprise Linux 7 - $basearch | |
baseurl=http://mirrors.aliyun.com/epel/7/$basearch | |
failovermethod=priority | |
enabled=1 | |
gpgcheck=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 | |
[epel-debuginfo] | |
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug | |
baseurl=http://mirrors.aliyun.com/epel/7/$basearch/debug | |
failovermethod=priority | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 | |
gpgcheck=0 | |
[epel-source] | |
name=Extra Packages for Enterprise Linux 7 - $basearch - Source | |
baseurl=http://mirrors.aliyun.com/epel/7/SRPMS | |
failovermethod=priority | |
enabled=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 | |
gpgcheck=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Direct Download
CentOS 7
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
epel(RHEL 7)
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
scl源
yum install centos-release-scl -y
yum install centos-release-scl-rh -y
Yum install
epel(RHEL 8)
yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*
sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*