在Linux下用命令行中玩转音乐库(3)

How to install RPM Fusion on Fedora or 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

The following instruction works for Fedora 14 or higher.

To enable the free repository of RPM Fusion:

$ sudo yum localinstall --nogpgcheck $(rpm -E %fedora).noarch.rpm

To enable the non-free repository of RPM Fusion:

$ sudo yum localinstall --nogpgcheck $(rpm -E %fedora).noarch.rpm

Set up RPM Fusion on CentOS

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.

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

$ sudo yum localinstall --nogpgcheck 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 CentOS 5:

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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/18020.html