Fedora Core 1 & 2 編輯目標: /etc/yum.conf
Fedora Core 3 (含) 以上編輯目標: /etc/yum.repos.d/ 路徑裡的 *.repo 檔案
vi /etc/yum.repos.d/fedora.repo
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=ftp://apt.nc./pub/fedora/linux/core/$releasever/$basearch/os/
enabled=1
gpgcheck=1
以上適用 Fedora 全系列, i386
其他可使用的 base 來源, 適用 Fedora 全系列, i386 & x86_64
http(or ftp)://ftp./pub/Linux/Fedora/linux/core/$releasever/$basearch/os/
ftp://linux.sinica.edu.tw/fedora/linux/core/$releasever/$basearch/os/
vi /etc/yum.repos.d/fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=ftp://apt.nc./pub/fedora/linux/core/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
以上適用 Fedora 全系列, i386
其他可使用的 updates 來源, 適用 Fedora 全系列, i386 & x86_64
http(or ftp)://ftp./pub/Linux/Fedora/linux/core/updates/$releasever/$basearch/
ftp://linux.sinica.edu.tw/fedora/linux/core/updates/$releasever/$basearch/
vi /etc/yum.repos.d/fedora-extras.repo
[extras]
name=Fedora Core $releasever - $basearch - Extras
baseurl=ftp://apt.nc./pub/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://ftp./pub/Linux/Fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
以上適用 Fedora 3~5, i386
其他可使用的 extras 來源
http(or ftp)://ftp./pub/Linux/Fedora/linux/extras/$releasever/$basearch/
簽名檔: ftp://ftp./pub/Linux/Fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
(適用 Fedora 3~5, i386 & x86_64)
ftp://140.111.66.34/Linux/Fedora/linux/extras/$releasever/$basearch/
(適用 4~5, i386)
vi /etc/yum.repos.d/freshrpms.repo
[freshrpms]
name=Fedora Core $releasever - $basearch - Freshrpms
baseurl=ftp://apt.nc./pub/freshrpms/fedora/linux/$releasever/
enabled=1
gpgcheck=1
gpgkey=ftp://apt.nc./pub/freshrpms/RPM-GPG-KEY
以上適用 Fedora 全系列
其他可使用的 freshrpms 來源
ftp://140.111.66.34/Linux/Fedora/linux/freshrpms/$releasever/ (適用 Fedora 4、5)
簽名檔: ftp://140.111.66.34/Linux/Fedora/linux/freshrpms/RPM-GPG-KEY
http(or ftp)://ftp./pub/freshrpms/fedora/linux/$releasever/ (適用 Fedora 全系列)
簽名檔: http://ftp./pub/freshrpms/RPM-GPG-KEY
至 下載並安裝 apt for Fedora Linux 套件, 以下以 FC3 為例:
rpm -ivh http://ftp./pub/freshrpms/fedora/linux/3/apt/apt-0.5.15cnc6-1.1.fc3.fr.i386.rpm
編輯 /etc/apt/sources.list, 加入以下內容
rpm ftp://apt.nc./pub/apt/fedora/linux/3 i386 os updates freshrpms firefly extra
rpm ftp://cle.linux.org.tw/apt/heidelberg Fedora os updates freshrpms cle
Fedora Linux 各版本代號一覽
Fedora Core 5 --> bordeaux
Fedora Core 4 --> stentz
Fedora Core 3 --> heidelberg
Fedora Core 2 --> tettnang
Fedora Core 1 --> yarrow
更新遠端伺服器套件檔案清單 (凡變更過 /etc/apt/sources.list 就要執(zhí)行一次)
apt-get update