启用 RPM Fusion 软件源
安装 Fedora 时会提示你是否启用其他第三方软件源。
但是自动启用的软件源,只有英伟达驱动程序、谷歌 Chrome 和 Steam 等软件源,全套的 RPM Fusion 软件源并没有自动启用,因此还有诸如 VLC 和 MPV 等软件也不可用。
建议你还是开启全套的 RPM Fusion,国内玩家还是建议使用清华的镜像开启 RPM Fusion:
sudo yum install --nogpgcheck https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
安装成功后,修改 /etc/yum.repos.d/
目录下以 rpmfusion
开头,以 .repo
结尾的文件。具体而言,需要将文件中的 baseurl=
开头的行等号后面链接中的 http://download1.rpmfusion.org/
替换为 https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/
, 替换后的文件类似如下:
[rpmfusion-free]
name=RPM Fusion for Fedora $releasever - Free
baseurl=https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/fedora/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
[rpmfusion-free-debuginfo]
name=RPM Fusion for Fedora $releasever - Free - Debug
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
[rpmfusion-free-source]
name=RPM Fusion for Fedora $releasever - Free - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/fedora/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
140 sudo yum install --nogpgcheck https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
141 cd /etc/yum.repos.d/
142 ll
143 sudo vim rpmfusion-free.repo
144 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-free.repo
145 sudo vim rpmfusion-free.repo
146 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-free-updates.repo
147 sudo vim rpmfusion-free-updates.repo
148 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-free-updates-testing.repo
149 sudo vim rpmfusion-free-updates-testing.repo
150 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-nonfree-nvidia-driver.repo
151 sudo vim rpmfusion-nonfree-nvidia-driver.repo
152 ll rpmfusion-*
153 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-nonfree.repo
154 sudo vim rpmfusion-nonfree.repo
155 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-nonfree-steam.repo
156 sudo vim rpmfusion-nonfree-steam.repo
157 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-nonfree-updates.repo
158 sudo vim rpmfusion-nonfree-updates.repo
159 sudo sed -i 's|http://download1.rpmfusion.org/|https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/|g' rpmfusion-nonfree-updates-testing.repo
160 sudo vim rpmfusion-nonfree-updates-testing.repo
161 sudo dnf update