@geekpi
https://linux.cn/article-15145-1.html
This commit is contained in:
Xingyu Wang 2022-10-16 11:14:21 +08:00
parent ebc06b5618
commit 0ee025b82f

View File

@ -3,29 +3,30 @@
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
[#]: reviewer: "wxy"
[#]: publisher: "wxy"
[#]: url: "https://linux.cn/article-15145-1.html"
如何在 Fedora、CentOS、RHEL 中启用 RPM Fusion 仓库
======
本指南解释了在 Fedora Linux 发行版中启用第三方软件仓库 RPM Fusion 的步骤。
[RPM Fusion][1] 软件仓库是一个社区维护的软件仓库,它为 Fedora Linux 提供额外的软件包,这些软件包不是由 Fedora 官方团队分发,例如 DVD 播放、媒体播放、来自 GNOME 和 KDE 的软件等。这是因为许可、其他法律原因和特定国家/地区的软件规范
> 本指南解释了在 Fedora Linux 发行版中启用第三方软件仓库 RPM Fusion 的步骤
RPM Fusion 为 Red Hat Enterprise Linux 以及 Fedora 提供了 .rpm 包。
[RPM Fusion][1] 软件仓库是一个社区维护的软件仓库,它为 Fedora Linux 提供额外的软件包,这些软件包不是由 Fedora 官方团队分发,例如 DVD 播放、媒体播放、来自 GNOME 和 KDE 的软件等。这是因为许可证、其他法律原因和特定国家/地区的软件规范而导致的。
RPM Fusion 为 Red Hat Enterprise LinuxRHEL以及 Fedora 提供了 .rpm 包。
本指南介绍了在 Fedora Linux 中启用 RPM Fusion 仓库所需的步骤。本指南适用于所有 Fedora 发行版本。
这在所有当前支持的 Fedora 版本35、36 和 37中进行了测试。
![RPM Fusion][2]
![](https://img.linux.net.cn/data/attachment/album/202210/16/111338jjr0eh5cjgq017n5.jpg)
### 如何在 Fedora Linux、RHEL、CentOS 中启用 RPM Fusion 仓库
RPM Fusion 有两种版本的仓库:自由和非自由。
顾名思义,自由版包含软件包的自由版本,非自由版包含封闭源代码和“非商业”开源软件的编译软件包
顾名思义,自由版包含软件包的自由版本,非自由版包含封闭源代码的编译软件包和“非商业”开源软件。
在继续之前,首先检查你是否安装了 RPM fusion。打开终端并运行以下命令。
@ -33,7 +34,6 @@ RPM Fusion 有两种版本的仓库:自由和非自由。
dnf repolist | grep rpmfusion
```
如果安装了 RPM你应该会看到如下所示的消息。就不用下面的步骤。如果未安装你可以继续执行以下步骤。
![RPM Fusion 已安装][3]
@ -42,69 +42,93 @@ dnf repolist | grep rpmfusion
#### Fedora
自由版:
```
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
```
非自由版:
```
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
```
#### 带 rpm-ostree 的 Silverblue
#### 在 Silverblue 上使用 rpm-ostree
自由版:
```
sudo rpm-ostree install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
```
非自由版:
```
sudo rpm-ostree install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
```
#### RHEL 8
先安装 EPEL
```
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
```
自由版:
```
sudo dnf install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
```
非自由版:
```
sudo dnf install --nogpgcheckhttps://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
```
开发相关软件包:
```
sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-$(uname -m)-rpms"
```
#### CentOS 8
先安装 EPEL
```
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
```
自由版:
```
sudo dnf install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
```
非自由版:
```
sudo dnf install --nogpgcheckhttps://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
```
启用 PowerTools
```
sudo dnf config-manager --enable PowerTools
```
### 附加说明
* RPM Fusion 还提供帮助用户安装来自 GNOME 软件或 KDE Discover 的软件包。要在 Fedora 中启用它,请运行以下命令
RPM Fusion 还可以帮助用户安装来自 GNOME 软件或 KDE Discover 的软件包。要在 Fedora 中启用它,请运行以下命令
```
sudo dnf groupupdate core
```
* 你还可以通过以下命令启用 RPM Fusion 来使用 gstreamer 和其他多媒体播放包来播放媒体文件。
你还可以通过以下命令启用 RPM Fusion 来使用 gstreamer 和其他多媒体播放包来播放媒体文件。
```
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
@ -114,13 +138,13 @@ sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=Pack
sudo dnf groupupdate sound-and-video
```
* 启用 RPM Fusion 以使用 libdvdcss 播放 DVD。
启用 RPM Fusion 以使用 libdvdcss 播放 DVD。
```
sudo dnf install rpmfusion-free-release-taintedsudo dnf install libdvdcss
```
* 通过以下命令启用 RPM Fusion 以启用非 FLOSS 硬件包。
通过以下命令启用 RPM Fusion 以启用非 FLOSS 硬件包。
```
sudo dnf install rpmfusion-nonfree-release-taintedsudo dnf install *-firmware
@ -169,7 +193,7 @@ via: https://www.debugpoint.com/enable-rpm-fusion-fedora-rhel-centos/
作者:[Arindam][a]
选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出