CentOS 7 (7.1.1503) 163 Source
The 163 source of centos 7 was not found for a long time on the Internet, most of which only had 6 configurations. Write a code that can be used in 7. Pay attention to the next version. Replace it with your own version.
[Html] view plaincopyprint?
- [Base]
- Name = CentOS-$ releasever-Base-163.com
- # Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = OS
- Base url = http://mirrors.163.com/centos/7.1.1503/updates/x86_64
- Gpgcheck = 0
- Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- # Releasedupdates
- [Updates]
- Name = CentOS-$ releasever-Updates-163.com
- # Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates
- Base url = http://mirrors.163.com/centos/7.1.1503/updates/x86_64
- Gpgcheck = 0
- Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- # Packagesused/producedinthebuildbutnotreleased
- [Addons]
- Name = CentOS-$ releasever-Addons-163.com
- # Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = addons
- Base url = http://mirrors.163.com/centos/7.1.1503/updates/x86_64
- Gpgcheck = 0
- Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- # Additionalpackagesthatmaybeuseful
- [Extras]
- Name = CentOS-$ releasever-Extras-163.com
- # Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = extras
- Base url = http://mirrors.163.com/centos/7.1.1503/updates/x86_64
- Gpgcheck = 0
- Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- # Additionalpackagesthatextendfunctionalityofexistingpackages
- [Centosplus]
- Name = CentOS-$ releasever-Plus-163.com
- # Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus
- Base url = http://mirrors.163.com/centos/7.1.1503/updates/x86_64
- Gpgcheck = 0
- Enabled = 0
- Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- # Contrib-packagesbyCentosUsers
- [Contrib]
- Name = CentOS-$ releasever-Contrib-163.com
- # Items list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = contrib
- Base url = http://mirrors.163.com/centos/7.1.1503/updates/x86_64
- Gpgcheck = 0
- Enabled = 0
- Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
The file to be modified is in this path:/etc/yum. repos. d
Remember to back up the original file.