Enable RPM Fusion Repository on Centos 7 | Easy Setup

In this guide, we want to teach you How To Enable RPM Fusion Repository on CentOS 7. RPM Fusion is a software repository database that offers users in the RHEL-based community never-ending access to free and non-free software for download and use. Software and packages available in repositories like RPM Fusion are not available in the official repositories of these Linux distributions.

You can now follow the guide steps below on the Orcacore website to add the RPM fusion repository on CentOS 7.

Steps To Enable RPM Fusion Repository on CentOS 7

To Add RPM Fusion Repository on CentOS 7, you must log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide on Initial Server Setup with CentOS 7.

1. Install EPEL Repository on CentOS 7

First, you need to update your local package index with the following command:

sudo yum update -y

Then, use the following command to install EPEL Repository:

sudo yum install epel-release -y

2. Add RPM Fusion Repository on CentOS 7

At this point, you can use the following command to enable the RPM fusion repo.

For the free repository, use the following command:

sudo wget --no-check-certificate https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

For the non-free repository, use the command below:

sudo wget --no-check-certificate https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm

Now use the following command to install RPM Fusion on your CentOS server:

sudo yum localinstall --nogpgcheck ./rpmfusion*.rpm
Enable RPM Fusion Repository on CentOS 7

You can verify your RPM Fusion installation by using the following command:

yum repolist | grep rpmfusion
Add RPM Fusion Repository on CentOS 7

3. List Available Packages in RPM Fusion Repo

At this point, you can list the available packages in the RPM fusion repo. For free packages, use the command below:

yum repository-packages rpmfusion-free-updates list
Output
Available Packages
VirtualBox.x86_64                      6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-devel.x86_64                6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-guest-additions.x86_64      6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-kmodsrc.noarch              6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-server.x86_64               6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-webservice.x86_64           6.1.40-1.el7       rpmfusion-free-updates
aegisub.x86_64                         3.2.2-4.el7        rpmfusion-free-updates
akmod-VirtualBox.x86_64                6.1.40-1.el7       rpmfusion-free-updates
akmod-ndiswrapper.x86_64               1.61-3.el7         rpmfusion-free-updates
akmod-wireguard.x86_64                 1.0.20201221-1.el7 rpmfusion-free-updates
akmod-xtables-addons.x86_64            2.13-2.el7         rpmfusion-free-updates
amule.x86_64                           2.3.3-4.el7        rpmfusion-free-updates
amule-nogui.x86_64                     2.3.3-4.el7        rpmfusion-free-updates
audacious-plugins-freeworld.x86_64     3.10.1-2.el7       rpmfusion-free-updates
audacious-plugins-freeworld-aac.x86_64 3.10.1-2.el7       rpmfusion-free-updates
audacious-plugins-freeworld-ffaudio.x86_64
....

For non-free packages, use the following command:

yum repository-packages rpmfusion-nonfree-updates list
Output
Available Packages
akmod-nvidia.x86_64                    3:450.66-1.el7  rpmfusion-nonfree-updates
akmod-nvidia-340xx.x86_64              1:340.108-4.el7 rpmfusion-nonfree-updates
akmod-nvidia-390xx.x86_64              3:390.138-1.el7 rpmfusion-nonfree-updates
akmod-wl.x86_64                        6.30.223.271-45.el7
                                                       rpmfusion-nonfree-updates
broadcom-bt-firmware.noarch            12.0.1.1105-8.el7
                                                       rpmfusion-nonfree-updates
broadcom-wl.noarch                     6.30.223.271-21.el7
                                                       rpmfusion-nonfree-updates
dolphin-megasync.x86_64                4.3.1.0-1.el7   rpmfusion-nonfree-updates
dwarffortress.x86_64                   0.43.05-6.el7   rpmfusion-nonfree-updates
dynamips.x86_64                        0.2.21-1.el7    rpmfusion-nonfree-updates
faac.x86_64                            1.28-7.el7      rpmfusion-nonfree-updates
...

Search Packages in RPM Fusion Repo

As you have seen, listing packages are so long. You can search for a specific package in the repository instead.

For example, you can search for the VirtualBox:

yum repository-packages rpmfusion-free-updates list | grep -i virtualbox
Output
VirtualBox.x86_64                      6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-devel.x86_64                6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-guest-additions.x86_64      6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-kmodsrc.noarch              6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-server.x86_64               6.1.40-1.el7       rpmfusion-free-updates
VirtualBox-webservice.x86_64           6.1.40-1.el7       rpmfusion-free-updates
akmod-VirtualBox.x86_64                6.1.40-1.el7       rpmfusion-free-updates
kmod-VirtualBox.x86_64                 6.1.40-1.el7       rpmfusion-free-updates
kmod-VirtualBox-3.10.0-1160.el7.x86_64.x86_64
python36-VirtualBox.x86_64             6.1.40-1.el7       rpmfusion-free-updates

4. Remove RPM Fusion Repo From CentOS 7

If you plan to remove RPM fusion, you can use the following commands.

For free repository, use:

sudo yum remove rpmfusion-free-release 

For non-free repositories, use:

sudo yum remove rpmfusion-nonfree-release

Conclusion

At this point, you have learned to Add RPM Fusion Repository on CentOS 7. You can easily find packages and use them on your server. RPM Fusion on CentOS 7 provides additional third-party software repositories, enabling access to multimedia codecs, drivers, and other packages not included in the default CentOS repositories.

Hope you enjoy it. Please subscribe to us on Facebook, Instagram, and YouTube.

You may be like these articles:

How To Install Podman on CentOS 7

How To Install PostgreSQL 15 on CentOS 7

Install and Configure OpenLiteSpeed on CentOS 7

Install Varnish Cache for Nginx on CentOS 7

Share your love

Stay informed and not overwhelmed, subscribe now!