Friday, May 6, 2016

How To Install/Enable RPM Fusion Repositories On Fedora , RHEL And CentOS

How To Install/Enable RPM Fusion Repositories On Fedora , RHEL And CentOS

RPM Fusion is a software repository that offers various free or non-free add-on packages that do not ship with the original Fedora distribution. RPM Fusion contains various useful packages that are not included in the Fedora distribution just because they do not meet Fedora's free software requirements. In this post, I will explain how to set up RPM Fusion repository on Fedora or CentOS. Once RPM Fusion is enabled on your system, you can install any package available from the repository simply by using yum command. First of all, to check whether or not RPM Fusion is installed on your system, run the following command.

yum repolist | grep rpmfusion

If the above command does not produce any result, it means that RPM Fusion is not installed on your system. RPM Fusion maintains two separate repositories for free and non-free packages. You can selectively enable either or both repositories as you want.

Set up RPM Fusion on Fedora

For Fedora 14 to Fedora 21 :

To enable the free repository of RPM Fusion:

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

To enable the non-free repository of RPM Fusion:

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

For Fedora 22 and later:

To enable the free repository of RPM Fusion:

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

To enable the non-free repository of RPM Fusion:

sudo dnf install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

Set up RPM Fusion on CentOS/RHEL

In order to install RPM fusion on CentOS, you first need to enable EPEL repository first. After that, proceed as follows to set up RPM Fusion on CentOS/RHEL.

To enable the free/non-free repositories of RPM Fusion on RHEL 6 or CentOS 6:

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm

To enable the free/non-free repositories of RPM Fusion on RHEL 5 or CentOS 5:

sudo rpm -Uvh http://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm

Please Run sudo dnf check-update (for feedora 22 and later) and sudo yum update (for fedora older releases..and RHEL/CentOS) once after enabling RPM Fusion Repos.


Blog Archive