vi /etc/yum.repos.d/fedora.repo
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://free.nchc.org.tw/fedora/linux/releases/$releasever/Everything/$basearch/os/
[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
baseurl=http://free.nchc.org.tw/fedora/linux/releases/$releasever/Everything/$basearch/debug/
[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
baseurl=http://free.nchc.org.tw/fedora/linux/releases/$releasever/Everything/source/SRPMS/
vi /etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=http://free.nchc.org.tw/fedora/linux/updates/$releasever/$basearch/
[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
baseurl=http://free.nchc.org.tw/fedora/linux/updates/$releasever/$basearch/debug/
[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
baseurl=http://free.nchc.org.tw/fedora/linux/updates/$releasever/SRPMS/
更新dnf的repo
dnf config-manager --add /etc/yum.repos.d/fedora.repo
dnf config-manager --add /etc/yum.repos.d/fedora-updates.repo
啟動repo
dnf config-manager --set-enabled fedora
dnf config-manager --set-enabled updates
目前dnf的設定
dnf config-manager --dump
查看已啟動的repo
dnf repolist
查看所有的repo
dnf repolist all