Method of installing Rpmforge in CentOS system

Source: Internet
Author: User
Tags gpg md5 sha1 centos

Rpmforge is a combination of Dag, dries, and other software packages. They provide CentOS with over 4,000 packages, including MPlayer, Xmms-mp3, and other popular media playback tools. Rpmforge is not part of a Red Hat Linux product or CentOS, but it is designed for these Linux suites.

Note: Because this installation source is not part of the CentOS itself, technical support issues should be sent to the Rpmforge maintainer.

The Rpmforge package is provided in the RPM format and is generally available. It is important to note that some packages are newer than the official version of CentOS, so you should not blindly install them. You should make sure that you don't break anything important before you upgrade to replace the CentOS official package. Although in most cases you can correct any errors, it is best to avoid similar situations.

Use under the CentOS 5.0

If you are going to apply this software warehouse, you may want to install priorities, because some of the packages in Rpmforge are newer than the versions of the corresponding packages in Contos.

The following comments show the feelings of the Yum defenders. However, from a practical standpoint, if you want to use the Rpmforge installation source, you have no way to avoid these Contos original packages are overwritten. Also, regarding the "yum-priorities" plugin, there is no problem report.

Note: Pay attention to the assertion by Yum, the upstream defender of Seth Vidal, in September 2009 about "Yum Priorities".

... Introduction, Last part: (Similarly, most people end up creating "yum-priorities")

Gosh, I hope people don't create yum priorities. There are so many things about priorities, it really makes me very intimidating. It almost reminded me of APT's "pinning" and came up with a shout of curses.

1.1 Priorities (priority)

Yum-priorities Package for CentOS 5 installation Source:

The code is as follows:

Yum Install Yum-priorities

(Install YUM priority plugin, generate/etc/yum/pluginconf.d/priorities.conf file)

In CentOS 5, Plug-ins are available by default.

You can edit the/etc/yum/pluginconf.d/priorities.conf file to make sure that the yum-priorities is available, confirming that it contains some of the following lines of text:

The code is as follows:

[Main]

Enabled=1

Default

Edit the. Repo file under the/etc/yum.repos.d/path to create the priorities by adding the following lines of text:

The code is as follows:

Priority=n

Corresponds to each installation source inlet, N is an integer from 1 to 99.

The recommended configuration is (Centos-base.repo file):

The code is as follows:

[Base], [addons], [updates], [extras] ... Priority=1

[Centosplus], [contrib] ... priority=2

For third-party installation sources, such as Rpmforge (Rpmforge.repo file), and so on, Priority=n (N is a more than 10 of your favorite integers)

1.2 Rpmforge

A complete list of rpmforge packages can be obtained in http://dag.wieers.com/packages/.

Download the Rpmforge-release package. Select the download that matches your OS architecture (I386/X86_64) in the following two links. If you are unsure of that schema, run the uname-i command.

The code is as follows:

i386http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm

x86_64http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm

For the installation source to be available, the preferred available and installed Rpmforge-release package can only be one of the two listed above.

Install the DAG GPG key

The code is as follows:

RPM--importhttp://apt.sw.be/rpm-gpg-key.dag.txt

To verify the downloaded package:

The code is as follows:

Rpm-k rpmforge-release-0.5.1-1.el5.rf.*.rpm

The checksum is correct and the result shows:

The code is as follows:

RPMFORGE-RELEASE-0.5.1-1.EL5.RF.I386.RPM: (SHA1) DSA SHA1 MD5 GPG OK

Security Warning: The Rpmforge-release package imports the GPG keys into the RPM database.

As long as you pass the MD5 checksum of the key of the injected package and trust Dag, et al, then they will be safe and believable.

Install Rpmforge-release Package

The code is as follows:

Rpm-i rpmforge-release-0.5.1-1.el5.rf.*.rpm

This will add Yum installation Source Profile Rpmforge.repo and Rpmforge-testing.repo (for testing) in/ETC/YUM.REPOS.D and import the appropriate GPG keys.

The contents of the Rpmforge.repo file are:

### name:rpmforge RPM Repository forred hatenterprise 5-dag

### url:http://rpmforge.net/

[Rpmforge]

Name =red hatenterprise $releasever-rpmforge.net-dag

BaseURL =http://apt.sw.be/redhat/el5/en/$basearch/rpmforge

Mirrorlist =http://apt.sw.be/redhat/el5/en/mirrors-rpmforge

#mirrorlist =file:///etc/yum.repos.d/mirrors-rpmforge

Enabled = 1

Protect = 0

Gpgkey =file:///etc/pki/rpm-gpg/rpm-gpg-

Key-rpmforge-dag

Gpgcheck = 1

The contents of the Rpmforge-testing.repo file are:

### name:rpmforge RPM Repository forred hatenterprise 5-dag

### url:http://rpmforge.net/

[Rpmforge-testing]

Name =red hatenterprise $releasever-rpmforge.net-test

BaseURL =http://apt.sw.be/redhat/el5/en/$basearch/test

Enabled = 0

Protect = 0

Gpgkey =file:///etc/pki/rpm-gpg/rpm-gpg-key-rpmforge-dag

Gpgcheck = 0

Then. You can configure the priority of the Rpmforge installation source (priority) if you have not previously configured the CentOS installation source priority.

Use the command to test:

The code is as follows:

Yum Check-update

It will output similar to the following two lines of information:

The code is as follows:

Loading "Priorities" plugin

...

Packages excluded due to repository priority protections

In your CentOS system, the number above may be different, but it shows that some of the packages are excluded.

If you see the above information, it indicates that the Rpmforge installation source and priority configuration are working. So you can try to run a similar yum install MPlayer?? If you see the above information, it indicates that the Rpmforge installation source and priority configuration are working. So you can try to run a similar yum install MPlayer?? If you see the above information, it indicates that the Rpmforge installation source and priority configuration are working. You can then try to run a similar yum install mplayer command to install some software.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.