mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-10 00:00:29 +08:00
parent
ebc06b5618
commit
0ee025b82f
@ -3,29 +3,30 @@
|
|||||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||||
[#]: collector: "lkxed"
|
[#]: collector: "lkxed"
|
||||||
[#]: translator: "geekpi"
|
[#]: translator: "geekpi"
|
||||||
[#]: reviewer: " "
|
[#]: reviewer: "wxy"
|
||||||
[#]: publisher: " "
|
[#]: publisher: "wxy"
|
||||||
[#]: url: " "
|
[#]: url: "https://linux.cn/article-15145-1.html"
|
||||||
|
|
||||||
如何在 Fedora、CentOS、RHEL 中启用 RPM Fusion 仓库
|
如何在 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 Linux(RHEL)以及 Fedora 提供了 .rpm 包。
|
||||||
|
|
||||||
本指南介绍了在 Fedora Linux 中启用 RPM Fusion 仓库所需的步骤。本指南适用于所有 Fedora 发行版本。
|
本指南介绍了在 Fedora Linux 中启用 RPM Fusion 仓库所需的步骤。本指南适用于所有 Fedora 发行版本。
|
||||||
|
|
||||||
这在所有当前支持的 Fedora 版本(35、36 和 37)中进行了测试。
|
这在所有当前支持的 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 仓库
|
### 如何在 Fedora Linux、RHEL、CentOS 中启用 RPM Fusion 仓库
|
||||||
|
|
||||||
RPM Fusion 有两种版本的仓库:自由和非自由。
|
RPM Fusion 有两种版本的仓库:自由和非自由。
|
||||||
|
|
||||||
顾名思义,自由版包含软件包的自由版本,非自由版包含封闭源代码和“非商业”开源软件的编译软件包。
|
顾名思义,自由版包含软件包的自由版本,非自由版包含封闭源代码的编译软件包和“非商业”开源软件。
|
||||||
|
|
||||||
在继续之前,首先检查你是否安装了 RPM fusion。打开终端并运行以下命令。
|
在继续之前,首先检查你是否安装了 RPM fusion。打开终端并运行以下命令。
|
||||||
|
|
||||||
@ -33,7 +34,6 @@ RPM Fusion 有两种版本的仓库:自由和非自由。
|
|||||||
dnf repolist | grep rpmfusion
|
dnf repolist | grep rpmfusion
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
如果安装了 RPM,你应该会看到如下所示的消息。就不用下面的步骤。如果未安装,你可以继续执行以下步骤。
|
如果安装了 RPM,你应该会看到如下所示的消息。就不用下面的步骤。如果未安装,你可以继续执行以下步骤。
|
||||||
|
|
||||||
![RPM Fusion 已安装][3]
|
![RPM Fusion 已安装][3]
|
||||||
@ -42,69 +42,93 @@ dnf repolist | grep rpmfusion
|
|||||||
|
|
||||||
#### Fedora
|
#### 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/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
|
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/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
|
sudo rpm-ostree install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||||
```
|
```
|
||||||
|
|
||||||
#### RHEL 8
|
#### RHEL 8
|
||||||
|
|
||||||
|
先安装 EPEL:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
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 --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 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"
|
sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-$(uname -m)-rpms"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### CentOS 8
|
#### CentOS 8
|
||||||
|
|
||||||
|
先安装 EPEL:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
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 --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 dnf install --nogpgcheckhttps://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
|
||||||
```
|
```
|
||||||
|
|
||||||
|
启用 PowerTools:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf config-manager --enable PowerTools
|
sudo dnf config-manager --enable PowerTools
|
||||||
```
|
```
|
||||||
|
|
||||||
### 附加说明
|
### 附加说明
|
||||||
|
|
||||||
* RPM Fusion 还提供帮助用户安装来自 GNOME 软件或 KDE Discover 的软件包。要在 Fedora 中启用它,请运行以下命令。
|
RPM Fusion 还可以帮助用户安装来自 GNOME 软件或 KDE Discover 的软件包。要在 Fedora 中启用它,请运行以下命令:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf groupupdate core
|
sudo dnf groupupdate core
|
||||||
```
|
```
|
||||||
|
|
||||||
* 你还可以通过以下命令启用 RPM Fusion 来使用 gstreamer 和其他多媒体播放包来播放媒体文件。
|
你还可以通过以下命令启用 RPM Fusion 来使用 gstreamer 和其他多媒体播放包来播放媒体文件。
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
|
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
|
sudo dnf groupupdate sound-and-video
|
||||||
```
|
```
|
||||||
|
|
||||||
* 启用 RPM Fusion 以使用 libdvdcss 播放 DVD。
|
启用 RPM Fusion 以使用 libdvdcss 播放 DVD。
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf install rpmfusion-free-release-taintedsudo dnf install libdvdcss
|
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
|
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]
|
作者:[Arindam][a]
|
||||||
选题:[lkxed][b]
|
选题:[lkxed][b]
|
||||||
译者:[geekpi](https://github.com/geekpi)
|
译者:[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/) 荣誉推出
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||||
|
|
Loading…
Reference in New Issue
Block a user