Showing posts with label linux software. Show all posts
Showing posts with label linux software. Show all posts

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.


How To Enable EPEL Repository on RHEL/CentOS

How To Enable EPEL Repository on RHEL/CentOS



If you are using CentOS or RHEL, it is strongly recommended that you enable EPEL (Extra Packages for Enterprise Linux) repository on your system. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux. Once you set up EPEL repository, you can use yum / dnf command to install software packages from EPEL repos.

EPEL provide lots of packages for CentOS / RHEL, It is not part of RedHat or CentOS but is designed to work with these major distributions. Please note that EPEL only provides free and open source software unencumbered by patents or any legal issues. In short you will not find mp3, dvd and music / media player under EPEL. However, you will find many programs related to networking, monitoring, sys admin, programming and so on.

You can get Non-free softwares by install/enable RPM Fusion repository on your Fedora/CentOS/RHEL or other derivative systems.

Now see How to enable it on various versions of RHEL/CentOS :

For RHEL7/CentOS 7

RHEL7/CentOS 7 users can install EPEL repos by running following command..

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

OR
Simply , by running..

sudo yum install epel-release.noarch

For RHEL6/CentOS 6

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

For RHEL5/CentOS 5

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm