目录
What is RPM Fusion Repository?
RPM Fusion Free and Non-free Repositories
1. Enable RPM Fusion Repository in Fedora Linux 39 / 38
1.1. List Repositories in Fedora
2. Enable RPM Fusion Repository in RHEL 8, CentOS 8, AlmaLinux 8, Rocky Linux 8
2.1. List Installed Repositories in RHEL-based Systems
3. Install Tainted RPM Fusion Repositories
3.1. Enable Free Tainted Repository
3.2. Enable Nonfree Tainted Repository
4. Disable RPM Fusion Repositories
Frequently Asked Questions
Conclusion
首页 系统教程 操作系统 如何在Fedora,Rhel,Almalinux,Rocky Linux启用RPM融合存储库

如何在Fedora,Rhel,Almalinux,Rocky Linux启用RPM融合存储库

Mar 21, 2025 am 09:49 AM

In this brief guide, we will explore what the RPM Fusion repository is, understand why we should install RPM Fusion Repository, and finally learn how to enable the RPM Fusion repository in Fedora, RHEL, and its clones such as CentOS, AlmaLinux, and Rocky Linux distributions.

Table of Contents

What is RPM Fusion Repository?

Fedora project strictly adheres the Fedora licensing policies. It excludes some packages from the official repositories for the following reasons:

  • If a package is propriety, it can't be included in Fedora;
  • If a package is closed-source, it can't be included in Fedora;
  • If a package is legally encumbered, it cannot be included in Fedora;
  • If package violates United States laws (specifically, Federal or applicable state laws), it cannot be included in Fedora.

Any package that fails to meet the aforementioned policies will not be included in the official repositories of Fedora and RHEL. This is why some third party repositories, which have liberal licensing policies, are created. One such repository is RPM Fusion.

RPM Fusion is a community-maintained, third-party software repository that provides packages that the Fedora project and Red Hat can't ship due to legal and various other reasons as stated earlier.

The RPM Fusion repository is a must have to install the necessary multimedia codecs, proprietary software and drivers in Fedora, RHEL and its clones like CentOS, AlmaLinux and Rocky Linux etc.

RPM Fusion Free and Non-free Repositories

RPM Fusion has two repositories namely "free" and "nonfree". The free repository contains the packages that are Open Source as defined by Fedora licensing guidelines. The nonfree repository contains redistributable packages that are not Open Source and packages that are not free for commercial purpose.

You can add both repos and use them simultaneously on your personal system. There won't be any conflicts between the packages in the free and nonfree repos. If you're interested in running only free packages, just add the free repo and install the nonfree repo later.

1. Enable RPM Fusion Repository in Fedora Linux 39 / 38

To enable both the free and the nonfree RPM Fusion repositories on your Fedora system, run:

1

$ sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

登录后复制

Sample output:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

Last metadata expiration check: 0:01:32 ago on Friday 10 November 2023 06:19:38 PM.

rpmfusion-free-release-39.noarch.rpm                                                                              2.2 kB/s |  11 kB     00:05   

rpmfusion-nonfree-release-39.noarch.rpm                                                                           6.4 kB/s |  11 kB     00:01   

Dependencies resolved.

==================================================================================================================================================

 Package                                         Architecture                 Version                    Repository                          Size

==================================================================================================================================================

Installing:

<strong><mark> rpmfusion-free-release</mark></strong>                          noarch                       39-1                       @commandline                        11 k

<strong><mark> rpmfusion-nonfree-release </mark></strong>                      noarch                       39-1                       @commandline                        11 k

 

Transaction Summary

==================================================================================================================================================

Install  2 Packages

 

Total size: 22 k

Installed size: 11 k

Is this ok [y/N]: y

Downloading Packages:

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                                                                                          1/1

  Installing       : rpmfusion-nonfree-release-39-1.noarch                                                                                    1/2

  Installing       : rpmfusion-free-release-39-1.noarch                                                                                       2/2

  Verifying        : rpmfusion-free-release-39-1.noarch                                                                                       1/2

  Verifying        : rpmfusion-nonfree-release-39-1.noarch                                                                                    2/2

 

Installed:

  rpmfusion-free-release-39-1.noarch                                     rpmfusion-nonfree-release-39-1.noarch                                   

 

Complete!

登录后复制

如何在Fedora,Rhel,Almalinux,Rocky Linux启用RPM融合存储库

Like I already mentioned, you can install only the free repo like below:

1

$ sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

登录后复制

To enable only the non-free RPM Fusion repository, do:

1

$ sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

登录后复制

On Fedora Silverblue:

To add and enable free and nonfree RPM Fusion repositories on a Fedora Silverblue machine, run:

1

$ sudo rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

登录后复制

Well, RPM Fusion repository is installed and enabled. Let us go ahead and see if RPM Fusion is enabled or not.

1.1. List Repositories in Fedora

To find the list of installed repositories in Fedora, run:

1

$ dnf repolist

登录后复制

Sample output:

1

2

3

4

5

6

7

8

9

10

11

12

repo id                                                                repo name

copr:copr.fedorainfracloud.org:phracek:PyCharm                         Copr repo for PyCharm owned by phracek

fedora                                                                 Fedora 39 - x86_64

fedora-cisco-openh264                                                  Fedora 39 openh264 (From Cisco) - x86_64

google-chrome                                                          google-chrome

<strong><mark>rpmfusion-free                                                         RPM Fusion for Fedora 39 - Free

rpmfusion-free-updates                                                 RPM Fusion for Fedora 39 - Free - Updates

rpmfusion-nonfree                                                      RPM Fusion for Fedora 39 - Nonfree

rpmfusion-nonfree-nvidia-driver                                        RPM Fusion for Fedora 39 - Nonfree - NVIDIA Driver

rpmfusion-nonfree-steam                                                RPM Fusion for Fedora 39 - Nonfree - Steam

rpmfusion-nonfree-updates                                              RPM Fusion for Fedora 39 - Nonfree - Updates</mark></strong>

updates                                                                Fedora 39 - x86_64 - Updates

登录后复制

If you want to list only the enabled repositories, the command would be:

1

$ dnf repolist enabled

登录后复制

The first time you attempt to install packages from the RPM Fusion repositories, the dnf utility prompts you to confirm the signature of the repositories. Type y and hit ENTER to confirm it.

1

2

3

4

5

6

RPM Fusion for Fedora 39 - Free                                                                                   1.6 MB/s | 1.7 kB     00:00   

Importing GPG key 0xD651FF2E:

 Userid     : "RPM Fusion free repository for Fedora (2020) <rpmfusion-buildsys@lists.rpmfusion.org>"

 Fingerprint: E9A4 91A3 DE24 7814 E7E0 67EA E06F 8ECD D651 FF2E

 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-39

Is this ok [y/N]: <strong>y</strong>

登录后复制

2. Enable RPM Fusion Repository in RHEL 8, CentOS 8, AlmaLinux 8, Rocky Linux 8

In RHEL and its clones like CentOS, AlmaLinux, Rocky Linux etc., you must enable [EPEL] repository before enabling RPM Fusion repository.

To install EPEL repository in Red Hat Enterprise Linux system, run:

1

$ sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm

登录后复制

After enabling the EPEL repository, run the following command to enable RPM Fusion repository in RHEL and its compatible clones CentOS, AlmaLinux and Rocky Linux:

1

$ sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm

登录后复制

Sample output:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

Last metadata expiration check: 0:09:07 ago on Friday 23 September 2022 11:41:49 AM UTC.

rpmfusion-free-release-8.noarch.rpm             861  B/s |  11 kB     00:12   

rpmfusion-nonfree-release-8.noarch.rpm          877  B/s |  11 kB     00:12   

Dependencies resolved.

================================================================================

 Package                        Arch        Version     Repository         Size

================================================================================

Installing:

 <strong><mark>rpmfusion-free-release</mark></strong>         noarch      8-0.1       @commandline       11 k

 <strong><mark>rpmfusion-nonfree-release</mark></strong>      noarch      8-0.1       @commandline       11 k

 

Transaction Summary

================================================================================

Install  2 Packages

 

Total size: 22 k

Installed size: 7.6 k

Is this ok [y/N]: y

Downloading Packages:

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                        1/1

  Installing       : rpmfusion-free-release-8-0.1.noarch                    1/2

  Installing       : rpmfusion-nonfree-release-8-0.1.noarch                 2/2

  Verifying        : rpmfusion-free-release-8-0.1.noarch                    1/2

  Verifying        : rpmfusion-nonfree-release-8-0.1.noarch                 2/2

 

Installed:

  rpmfusion-free-release-8-0.1.noarch   rpmfusion-nonfree-release-8-0.1.noarch 

 

Complete!

登录后复制

如何在Fedora,Rhel,Almalinux,Rocky Linux启用RPM融合存储库

If you are using CentOS Steam 8, you need to enable [PowerTools] repository as well.

1

$ sudo dnf config-manager --enable powertools

登录后复制

CentOS 8 (older version) used a case sensitive name for the PowerTools repository:

1

$ sudo dnf config-manager --enable PowerTools

登录后复制

On RHEL 8, you should enable subscription:

1

$ sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-$(uname -m)-rpms"

登录后复制

In RHEL 7 and its compatible clones like CentOS 7, run the following command to enable EPEL and RPM Fusion repositories:

1

$ sudo yum localinstall --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm

登录后复制

2.1. List Installed Repositories in RHEL-based Systems

You can view the list of the installed repositories at any time using the following commands:

1

$ dnf repolist

登录后复制

Or,

1

$ yum repolist

登录后复制

Sample output:

1

2

3

4

5

6

7

8

9

repo id                                                    repo name

appstream                                                  AlmaLinux 8 - AppStream

baseos                                                     AlmaLinux 8 - BaseOS

docker-ce-stable                                           Docker CE Stable - x86_64

epel                                                       Extra Packages for Enterprise Linux 8 - x86_64

epel-modular                                               Extra Packages for Enterprise Linux Modular 8 - x86_64

extras                                                     AlmaLinux 8 - Extras

<strong><mark>rpmfusion-free-updates</mark></strong>                                     RPM Fusion for EL 8 - Free - Updates

<strong><mark>rpmfusion-nonfree-updates</mark></strong>                                  RPM Fusion for EL 8 - Nonfree - Updates

登录后复制

如何在Fedora,Rhel,Almalinux,Rocky Linux启用RPM融合存储库

3. Install Tainted RPM Fusion Repositories

RPM Fusion provides two additional repositories namely Free Tainted and Nonfree Tainted.

Before tainted repositories were created, the redistributable status of software was only analyzed for copyright compliance, not for reverse engineering rights. Tainted repositories were added to address this gap.

Let's explore what they are and also learn how to enable them.

3.1. Enable Free Tainted Repository

The Free Tainted repository in RPM Fusion contains software that is under a free license but may have usage restrictions in certain countries. This is primarily due to legal or patent issues related to the software's functionality.

A notable example is libdvdcss, a library used for playing DVDs, which might be subject to legal restrictions in some jurisdictions.

Users can enable this repository by installing the rpmfusion-free-release-tainted package.

1

$ sudo dnf install rpmfusion-free-release-tainted

登录后复制

This process integrates the Free Tainted repository into the system's package manager, allowing for easy installation and updates of its software.

3.2. Enable Nonfree Tainted Repository

The Nonfree Tainted repository includes software that is not freely licensed (nonfree) and is not explicitly redistributable. Despite this, it is allowed for interoperability purposes in some countries. This includes firmware and drivers necessary for the operation of certain hardware components.

Examples:

  • b43-firmware: Firmware for Broadcom wireless network chips.
  • nouveau-firmware: Firmware for certain NVIDIA graphics cards.
  • dvb-firmware: Firmware for Digital Video Broadcasting hardware.

Similar to the Free Tainted repository, the Nonfree Tainted repository can be enabled by installing the rpmfusion-nonfree-release-tainted package.

1

$ sudo dnf install rpmfusion-nonfree-release-tainted

登录后复制

Both these repositories extend the range of available software in Fedora and RHEL systems, particularly for users who need access to software that falls outside the scope of standard free and open-source software due to licensing or legal reasons. However, users should be aware of the legal implications of using such software in their respective countries.

4. Disable RPM Fusion Repositories

If you don't want RPM Fusion repositories anymore, you can disable RPM Fusion repository using yum-config-manager as shown below.

To disable both free and non-free RPM Fusion repositories, run:

1

$ sudo yum-config-manager --disable rpmfusion-free-updates

登录后复制

1

$ sudo yum-config-manager --disable rpmfusion-nonfree-updates

登录后复制

To enable free and non-free repositories, run:

1

$ sudo yum-config-manager --enable rpmfusion-free-updates

登录后复制

1

$ sudo yum-config-manager --enable rpmfusion-nonfree-updates

登录后复制

Frequently Asked Questions

Here are a few FAQs about RPM Fusion repositories.

Q: What is the RPM Fusion Repository?

A: RPM Fusion is a software repository that provides additional packages for Fedora, RHEL, and their clones like CentOS, AlmaLinux, and Rocky Linux. These packages are not available in the default repositories due to various reasons, such as licensing issues or policy restrictions.

Q: Why should I use RPM Fusion?

A: RPM Fusion offers access to a wider range of software, including multimedia applications, drivers, and software that might not be included in the default repositories.

Q: Is RPM Fusion safe to use?

A: RPM Fusion is generally considered safe and reliable. However, as with any third-party repository, there's always a slight risk. The RPM Fusion team works to ensure the safety and compatibility of packages, but it's always a good idea to exercise caution when installing third-party software.

Q: How do I enable RPM Fusion on my system?

A: You can enable RPM Fusion by downloading and installing the repository configuration packages from the RPM Fusion website. Instructions are provided for Fedora, RHEL, and their respective clones in this tutorial itself. It involves executing a few commands in the terminal.

Q: Can I use RPM Fusion with both Fedora and RHEL?

A: Yes, RPM Fusion is available for both Fedora and RHEL, as well as for RHEL clones like CentOS, AlmaLinux, and Rocky Linux. Each distribution has specific instructions for enabling the repository.

Q: Are there different versions of RPM Fusion?

RPM Fusion has two main repositories: Free and Nonfree. The Free repository contains open-source software, while the Nonfree repository includes software that is proprietary or has certain restrictions on redistribution. It also provides two more repositories namely Free Tainted and Nonfree Tainted.

Q: What are Tainted Repositories in RPM Fusion?

A: Free Tainted: Contains software under a free license but with usage restrictions in some countries, like 'libdvdcss'. You can enable it by installing the rpmfusion-free-release-tainted package.Nonfree Tainted: Includes nonfree software, essential for interoperability but with distribution limitations. Examples are b43-firmware and nouveau-firmware. Enabled by the rpmfusion-nonfree-release-tainted package.

Q: What kind of packages can I find in RPM Fusion?

A: RPM Fusion hosts a variety of packages, including multimedia players and codecs, graphics drivers, and software that may not meet the licensing criteria of the official Fedora or RHEL repositories.

Q: How often is RPM Fusion updated?

A: RPM Fusion is regularly updated by its maintainers. The frequency of updates may vary, but it generally aligns with updates in Fedora and RHEL to ensure compatibility.

Q: Is there any support available for RPM Fusion?

A: While there is no official support for RPM Fusion, community forums and resources are available where users can seek help and share information.

Q: Can I contribute to RPM Fusion?

A: Yes, RPM Fusion welcomes contributions from the community. This can include packaging software, testing, and providing feedback or documentation. Details on how to contribute are available on the RPM Fusion website.

Conclusion

That's it. You know now how to enable RPM Fusion repository RPM-based systems such as Fedora, RHEL, CentOS, AlmaLinux, and Rocky Linux.

Enabling RPM Fusion in a newly installed system is mandatory as it provides a lots of unofficial packages that are not included in the official repositories.

Resource:

  • RPM Fusion Configuration

以上是如何在Fedora,Rhel,Almalinux,Rocky Linux启用RPM融合存储库的详细内容。更多信息请关注PHP中文网其他相关文章!

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
2 周前 By 尊渡假赌尊渡假赌尊渡假赌
仓库:如何复兴队友
1 个月前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒险:如何获得巨型种子
4 周前 By 尊渡假赌尊渡假赌尊渡假赌

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

用sed命令掌握文本操纵 用sed命令掌握文本操纵 Mar 16, 2025 am 09:48 AM

Linux 命令行界面提供了丰富的文本处理工具,其中最强大的工具之一是 sed 命令。sed 是 Stream EDitor 的缩写,是一个多功能工具,允许对文本文件和流进行复杂的处理。 什么是 Sed? sed 是一款非交互式文本编辑器,它操作管道输入或文本文件。通过提供指令,您可以让它修改和处理文件或流中的文本。sed 最常见的用例包括选择文本、替换文本、修改原始文件、向文本添加行或从文本中删除行等操作。它可以在 Bash 和其他命令行 shell 中从命令行使用。 Sed 命令语法 sed

PILET:由Raspberry Pi提供动力的模块化,便携式迷你计算机 PILET:由Raspberry Pi提供动力的模块化,便携式迷你计算机 Mar 06, 2025 am 10:11 AM

Discover Pillet:一种复古的,开源的迷你计算机 寻找将经典风格与尖端技术融合的迷你计算机? Meet Pilet是一个由Raspberry Pi 5的模块化的开源奇迹。拥有7小时的电池寿命

Linux内核源代码超过4000万行 Linux内核源代码超过4000万行 Mar 05, 2025 am 09:35 AM

Linux:现代计算的基石,从智能手机到超级计算机,无所不能。多年来,Linux内核的规模和复杂性显着增长。截至2025年1月,Linux内核源代码大约包含4000万行代码!这是开源、社区驱动项目历史上最伟大的成就之一。 本文将讨论Linux内核源代码行数的指数级增长,其原因以及如何自行检查当前行数。 目录 - Linux内核的历程 统计Linux内核源代码的行数 只统计C和头文件 内核增长的指数趋势 验证历史Linux内核行数 总结 Linux内核的历程 自1991年Linus Tor

如何计算Linux中的文件和目录:初学者指南 如何计算Linux中的文件和目录:初学者指南 Mar 19, 2025 am 10:48 AM

有效地计数Linux中的文件和文件夹:综合指南 知道如何快速计算Linux中的文件和目录对于系统管理员和管理大型数据集的任何人至关重要。本指南使用简单命令l演示

如何将用户添加到Linux中的多个组 如何将用户添加到Linux中的多个组 Mar 18, 2025 am 11:44 AM

有效管理用户帐户和组成员资格对于Linux/UNIX系统管理至关重要。 这样可以确保适当的资源和数据访问控制。 本教程详细介绍了如何将用户添加到Linux和Unix系统中的多个组中。 我们

用Liquorix内核增强Linux系统的秘密武器 用Liquorix内核增强Linux系统的秘密武器 Mar 08, 2025 pm 12:12 PM

Liquorix内核:提升Linux系统性能的利器 Linux以其灵活、安全和高性能而闻名,成为开发人员、系统管理员和高级用户的首选操作系统。然而,通用Linux内核并非总是能满足寻求最大性能和响应速度用户的需求。这就是Liquorix内核发挥作用的地方——一个针对性能优化的替代方案,有望增强您的Linux系统。本文将探讨Liquorix内核是什么,为什么您可能想要使用它,以及如何安装和配置它以充分发挥系统的性能。 Liquorix内核详解 Liquorix内核是一个预编译的Linux内核,专为

System76介绍Meerkat Mini PC:小包装中的大功能 System76介绍Meerkat Mini PC:小包装中的大功能 Mar 05, 2025 am 10:28 AM

System76 Meerkat:强大的迷你PC 寻找一台功能强大但节省空间的计算机? 与System76结识Meerkat Mini PC!这个紧凑型强国非常适合整理台式机和苛刻的任务。 目录 - 紧凑的设计,令人印象深刻

构建自己的Ubuntu个人云:创建安全数据天堂的分步指南 构建自己的Ubuntu个人云:创建安全数据天堂的分步指南 Mar 05, 2025 am 11:02 AM

在当今数字时代,数据不仅仅是信息,更是我们生活的一部分。从照片和文档到敏感的个人信息,我们的数据代表着我们的回忆、工作和兴趣。虽然云存储服务广泛可用,但它们通常伴随着隐私问题、订阅费用和定制限制。这就是在Ubuntu上构建个人云作为强大替代方案的意义所在,它使您可以完全控制自己的数据,并灵活地根据需要进行自定义和扩展。 本指南将引导您设置基于Ubuntu的个人云,使用Nextcloud作为主要应用程序,并确保您的设置安全可靠。 为什么在Ubuntu上构建个人云? Ubuntu是最流行的Linux

See all articles