Education Network cannot access foreign countries, so the default source in the Fedora system cannot be used. This article takes the source of Shanghai Jiao Tong University as an example to introduce how to configure the yum source in Fedora9. First, back up the current source configuration file. # Mkdir ~ /Repo. bak # mv/etc/yum. repos. d /*~ /Repo. bak create and edit/etc/yum. repos. d/sjtu. repo [updates] name = Fedoraupdatesb with root permission
Education Network cannot access foreign countries, so the default source in the Fedora system cannot be used. This article takes the source of Shanghai Jiao Tong University as an example to introduce how to configure the yum source in Fedora 9.
First, back up the current source configuration file.
# Mkdir ~ /Repo. bak
# Mv/etc/yum. repos. d /*~ /Repo. bak
Create and edit/etc/yum. repos. d/sjtu. repo with root permissions
[Updates]
Name = Fedora updates
Baseurl = ftp://ftp.sjtu.edu.cn/fedora/linux/updates/?releasever/?basearch/
Enabled = 1
Gpgcheck = 0
[Fedora]
Name = Fedora $ releasever-$ basearch
Baseurl = Signature/
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file: // etc/pki/rpm-gpg/RPM-GPG-KEY
To use freshrpms, you can also add:
[Freshrpms]
Name = Fedora Core $ releasever-$ basearch-Freshrpms
Baseurl = Signature/
Enabled = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
Gpgcheck = 0
Save and update the yum cache.
# Yum makecache
Finally, there are several common ftp
Beiyou:
Ftp://ftp.bupt.edu.cn/pub/mirror/fedora
Ftp://openware.byr.edu.cn/pub/mirror/fedora
Tsinghua:
Ftp://ftp3.tsinghua.edu.cn/mirror/fedora
Ftp://ftp3.tsinghua.edu.cn/mirror/fedora/mirror/livna
Hand in:
Ftp://ftp.sjtu.edu.cn/fedoraftp://ftp.sjtu.edu.cn/freshrpms
North Branch:
Ftp: // 202.204.60.11/pub/fedora