Set the domestic yum source for Fedora16

Source: Internet
Author: User
Tags metalink
1) delete/etc/yum first. repos. d/all files 2) Add Shanghai Jiao Tong source and save the following content as/etc/yum. repos. d/sjtu. repo [Fedora-ftp.sjtu.edu.cn] name = Fedora16-i386baseurl = http://ftp.sjtu.edu.cn/fedora/linux/releases/16/Fedora/i386/ OS /enable 1) Delete firstAll files under/etc/yum. repos. d/ 2) addShanghai Jiaotong University,Save the following content as/etc/yum. repos. d/sjtu. repo

Fedora-ftp.sjtu.edu.cn
Name = Fedora 16-i386
Base url = http://ftp.sjtu.edu.cn/fedora/linux/releases/16/Fedora/i386/ OS/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Everything-ftp.sjtu.edu.cn
Name = Everything 16-i386
Base url = http://ftp.sjtu.edu.cn/fedora/linux/releases/16/Everything/i386/ OS/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Updates-ftp.sjtu.edu.cn
Name = Fedora updates
Base url = http://ftp.sjtu.edu.cn/fedora/linux/updates/16/i386/
Enabled = 1
Gpgcheck = 0

3) Add the 163 source,Save the following content as/etc/yum. repos. d/163. repo

Fedora-mirrors.163.com
Name = Fedora 16-i386
Base url = http://mirrors.163.com/fedora/updates/16/i386/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file: // etc/pki/rpm-gpg/RPM-GPG-KEY
Everything-mirrors.163.com
Name = Everything 16-i386
Base url = http://mirrors.163.com/fedora/updates/16/i386/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file: // etc/pki/rpm-gpg/RPM-GPG-KEY
Updates-mirrors.163.com
Name = Fedora updates
Base url = http://mirrors.163.com/fedora/updates/16/i386/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file: // etc/pki/rpm-gpg/RPM-GPG-KEY

4) add Sohu Source
Save the following content as/etc/yum. repos. d/fedora-sohu.repo

[Fedora]
Name = Fedora $ releasever-$ basearch-sohu.com
Failovermethod = priority
Baseurl = http://mirrors.sohu.com/fedora/releases/?releasever/everything/#basearch/ OS/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = fedora-$ releasever & arch = $ basearch
Enabled = 1
Metadata_expire = 7d
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$ basearch

[Fedora-debuginfo]
Name = Fedora $ releasever-$ basearch-Debug-sohu.com
Failovermethod = priority
Baseurl = Signature/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = fedora-debug-$ releasever & arch = $ basearch
Enabled = 0
Metadata_expire = 7d
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$ basearch

[Fedora-source]
Name = Fedora $ releasever-Source-sohu.com
Failovermethod = priority
Baseurl = http://mirrors.sohu.com/fedora/releases/?releasever/everything/source/srpms/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = fedora-source-$ releasever & arch = $ basearch
Enabled = 0
Metadata_expire = 7d
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$ basearch


Save the following content as/etc/yum. repos. d/fedora-updates-sohu.repo

[Updates]
Name = Fedora $ releasever-$ basearch-Updates-sohu.com
Failovermethod = priority
Baseurl = http://mirrors.sohu.com/fedora/updates/?releasever/?basearch/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = updates-released-f $ releasever & arch = $ basearch
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$ basearch

[Updates-debuginfo]
Name = Fedora $ releasever-$ basearch-Updates-Debug-sohu.com
Failovermethod = priority
Baseurl = http://mirrors.sohu.com/fedora/updates/?releasever/?basearch/debug/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = updates-released-debug-f $ releasever & arch = $ basearch
Enabled = 0
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$ basearch

[Updates-source]
Name = Fedora $ releasever-Updates Source-sohu.com
Failovermethod = priority
Baseurl = http://mirrors.sohu.com/fedora/updates/?releasever/srpms/
Using list = https://mirrors.fedoraproject.org/metalink? Repo = updates-released-source-f $ releasever & arch = $ basearch
Enabled = 0
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$ basearch


5) Run yum clean all and yum makecache in sequence on the terminal.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.