Created
December 10, 2019 04:41
-
-
Save mostevercxz/18ae31cd688a852c07b898241ee75652 to your computer and use it in GitHub Desktop.
Redhat 7.6 centos source
This file contains hidden or 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
| [base] | |
| name=CentOS-7 - Base - mirrors.aliyun.com | |
| failovermethod=priority | |
| baseurl=http://mirrors.aliyun.com/centos/7/os/$basearch/ | |
| http://mirrors.aliyuncs.com/centos/7/os/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 | |
| #released updates | |
| [updates] | |
| name=CentOS-7 - Updates - mirrors.aliyun.com | |
| failovermethod=priority | |
| baseurl=http://mirrors.aliyun.com/centos/7/updates/$basearch/ | |
| http://mirrors.aliyuncs.com/centos/7/updates/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 | |
| #additional packages that may be useful | |
| [extras] | |
| name=CentOS-7 - Extras - mirrors.aliyun.com | |
| failovermethod=priority | |
| baseurl=http://mirrors.aliyun.com/centos/7/extras/$basearch/ | |
| http://mirrors.aliyuncs.com/centos/7/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-7 - Plus - mirrors.aliyun.com | |
| failovermethod=priority | |
| baseurl=http://mirrors.aliyun.com/centos/7/centosplus/$basearch/ | |
| http://mirrors.aliyuncs.com/centos/7/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-7 - Contrib - mirrors.aliyun.com | |
| failovermethod=priority | |
| baseurl=http://mirrors.aliyun.com/centos/7/contrib/$basearch/ | |
| http://mirrors.aliyuncs.com/centos/7/contrib/$basearch/ | |
| gpgcheck=1 | |
| enabled=0 | |
| gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 |
This file contains hidden or 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 |
This file contains hidden or 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
| #!/bin/bash | |
| rpm -aq | grep yum|xargs rpm -e --nodeps | |
| curl -L "https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-3.4.3-163.el7.centos.noarch.rpm" -o yum-3.4.3-163.el7.centos.noarch.rpm | |
| curl -L "https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm" -o yum-metadata-parser-1.1.4-10.el7.x86_64.rpm | |
| curl -L "https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm" -o yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm | |
| rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm | |
| rpm -ivh yum-3.4.3-163.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment