Install the rpmforge installation source in centos 5.0)

Source: Internet
Author: User
Tags gpg

Install rpmforge

Rpmforge is a combination of Dag, dries, and other software packages. They provide more than 4000 software packages for centos, including mplayer, xmms-mp3, and other popular media player tools. Rpmforge is not part of a Red Hat Linux product or centos, but it is designed for these Linux suites.

Note: Because the installation source is not an integral part of centos, technical support issues should be sent to rpmforge maintainer.

The rpmforge software package is provided in RPM format and is generally available. Note that some packages are newer than the official centos version, so you should not install them blindly. Before upgrading to replace the software package officially provided by centos, make sure that you do not destroy anything important. Although you can correct any errors in most cases, it is best to avoid similar situations.

Use in centos 5.0

If you want to apply this software repository, you may want to install priorities because some packages in rpmforge are newer than their corresponding packages in contos.

The following comments show the feelings of the yum maintainer. However, from a practical point of view, if you want to use rpmforge to install the source, you cannot avoid overwriting the original contos software packages. In addition, there is no problem report about the "yum-Priorities" plug-in.

Note: Pay attention to the description of "yum priorities" in July September 2009 by Seth Vidal, the upstream Maintainer of yum.

... Introduction, last part: (Similarly, most people finally create "yum-Priorities ")

My god, I hope people do not create Yum priorities. There are so many things about priorities that really make me daunting. It reminds me of APT "pinning" and makes me scream.

1.1 priorities (priority)

The yum-priorities package for centos 5 installation Source:
Yum install Yum-Priorities
(Install the yum priority plug-in to generate the/etc/Yum/pluginconf. d/priorities. conf file)

In centos 5, the plug-in is available by default.

You can edit the/etc/Yum/pluginconf. d/priorities. conf file to ensure that Yum-priorities is available. Make sure it contains the following text lines:
[Main]
Enabled = 1 (default)

Edit the. Repo file in the/etc/yum. Repos. d/path and add the following lines to create priorities:
Priority = N

Corresponding to each installation source entry, n is an integer from 1 to 99.

The recommended configuration is (CentOS-Base.repo file ):
[Base], [Addons], [updates], [extras]... priority = 1
[Centosplus], [contrib]... priority = 2

For third-party installation sources, such as rpmforge (rpmforge. Repo file), priority = n (n is an integer greater than 10)

1.2 rpmforge

You can get a complete list of rpmforge packages in the http://dag.wieers.com/packages.

Download the rpmforge-release package. Select the download link that matches your OS architecture (i386/x86_64) in the following two links. If you are not sure about the architecture, run the uname-I command.

I386 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
Http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm x86_64

To make the installation source available, the preferred rpmforge-release package can only be one of the two listed above.

Install the GPG key of the Dag
Rpm -- import http://apt.sw.be/RPM-GPG-KEY.dag.txt

Verify the downloaded package:
Rpm-K rpmforge-release-0.5.1-1.el5.rf. *. rpm
The verification is correct and the result shows:
Rpmforge-release-0.5.1-1.el5.rf.i386.rpm: (sha1) DSA sha1 MD5 GPG OK

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

As long as you pass the MD5 checksum of the key of the injection package and trust Dag, Et Al., they will be safe and trusted.

Install the rpmforge-release package

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

This will add the yum installation source profile rpmforge. Repo and rpmforge-testing.repo (for testing) in/etc/yum. Repos. D and import the appropriate GPG keys.

The content of the rpmforge. Repo file is:

### Name: rpmforge RPM repository for Red Hat Enterprise 5-Dag
### URL: http://rpmforge.net/
[Rpmforge]
Name = Red Hat Enterprise $ releasever-rpmforge.net-Dag
Baseurl = http://apt.sw.be/redhat/el5/en/?basearch/rpmforge
Using list = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
# Prepare list = file: // etc/yum. Repos. d/mirrors-rpmforge
Enabled = 1
Protect = 0
Gpgkey = file: // etc/pki/rpm-GPG-key-rpmforge-Dag
Gpgcheck = 1

Rpmforge-testing.repo file content is:

### Name: rpmforge RPM repository for Red Hat Enterprise 5-Dag
### URL: http://rpmforge.net/
[Rpmforge-testing]
Name = Red Hat Enterprise $ releasever-rpmforge.net-test
Baseurl = http://apt.sw.be/redhat/el5/en/?basearch/test
Enabled = 0
Protect = 0
Gpgkey = file: // etc/pki/rpm-GPG-key-rpmforge-Dag
Gpgcheck = 0

At this time. You can configure the priority of the rpmforge installation source (priority). If you have not configured the priority of the centos installation source, you can also configure it.

Run the following command to test:

Yum check-Update

It outputs information similar to the following two rows:

Loading "Priorities" plugin
...
76 packages excluded due to repository priority Protections

In your centos system, the numbers above may be different, but it indicates that some packages are excluded.

If the preceding information is displayed, it indicates that the rpmforge installation source and priority configuration have taken effect. So you can try to run Yum install mplayer. If you see the above information, it indicates that the rpmforge installation source and priority configuration have taken effect. So you can try to run Yum install mplayer. If you see the above information, it indicates that the rpmforge installation source and priority configuration have taken effect. So you can try to run the command like yum install mplayer to install some software.

Note-1:

The original Article address is as follows:
Http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
This article only translates the parts related to centos 5.0 and adds the Explanations of some authors while maintaining the original meaning.

Note-2:

Chapter Introduction: Yum can install some software packages by adding third-party installation sources. The rpmforge installed in this article is an example. This poses a problem. If some software packages in the third-party installation source are newer than the corresponding software package version pre-installed in centos, a newer version will be automatically installed to replace the pre-installed software version of centos. If you upgrade the software blindly, it may be hasty and unwise, this may cause some potential security and management problems.

Therefore, yum introduces a mechanism to queue the download source priority based on "priority. This is implemented by the Yum-priorities plug-in. To apply this feature, you need to install this plug-in and configure it to take effect, and add priority = n to the repo configuration to define the priority level. This integer number (1 ~ 99) the smaller the value, the higher the priority. In this way, if different download sources have software packages overlapping, the lower priority will be protected and excluded (excluded), and will not be checked or updated ).

====================
The original appendix is as follows:
====================

Installing rpmforge

Rpmforge is a collaboration of Dag, dries, and other packagers. they provide over 4000 packages for centos, including mplayer, xmms-mp3, and other popular media tools. it is not part of RedHat or centos but is designed to work with those distributions.

Note: Because this repository is not part of centos, you shocould direct support questions to its maintainers.

Packages are supplied in RPM format and in most cases are ready to use. beware that some packages are newer than the official centos versions and you shoshould not blindly install those packages. before you replace a centos package you shoshould make sure that will not break anything important. in most cases you can revert any mistakes but it is best to avoid the mess.

Centos 5

If you wish use this repository, you may wish to install priorities, as a few packages in rpmforge are newer than their counterparts in the centos base repositories.

The note below shows the feelings of the yum maintainer but, from a practical standpoint, you have no other way to save packages from being overwritten if you wish to use the rpmforge repository. and, as of yet, no real world problems have been reported with regard to the 'yum-priorities 'plugin.

Note: Please note that the upstream Maintainer of yum, Seth Vidal, had the following to say about 'yum priorities 'in September 2009.

... Lead in, ending: (same way most people end up setting up 'yum-priorities 'Anyway)

Gosh, I hope people do not set up Yum priorities. there are so many things about priorities that make me cringe all over. it coshould just be that it reminds me of APT 'pinning' and that makes me want to hurl.

1.1. Priorities

Yum-priorities is available in the centos 5 repositories:

Yum install Yum-Priorities

Plugins are enabled in centos 5 by default.

Make sure that Yum-priorities is enabled by editing the/etc/Yum/pluginconf. d/priorities. conf file, and ensuring that it contains the following lines:

[Main]
Enabled = 1

Edit the. Repo files in/etc/yum. Repos. d/and set up priorities by adding the line:

Priority = N

To a repository entry, where n is an integer number from 1 to 99.

The Recommended settings are:
[Base], [Addons], [updates], [extras]... priority = 1
[Centosplus], [contrib]... priority = 2
Third party repos such as rpmforge... priority = N (where N is> 10 and based on your preference)

1.2. rpmforge
You can find a complete listing of the rpmforge package at http://dag.wieers.com/packages/

Download the rpmforge-release package. choose one of the two links below, selecting to match your host's architecture. if you are unsure of which one to use you can check your architecture with the command uname-I
I386 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
Http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm x86_64

The preferred rpmforge-release package to retrieve and to install in order to enable that repository is one of the two listed above.

Install Dag's GPG key
Rpm -- import http://apt.sw.be/RPM-GPG-KEY.dag.txt

Verify the package you have downloaded
Rpm-K rpmforge-release-0.5.1-1.el5.rf. *. rpm

Security Warning: The rpmforge-release package imports GPG keys into your RPM database.

As long as you have verified the md5sum of the key injection package, and trust Dag, Et Al., then it shoshould be as safe as your trust of them extends.

Install the package
Rpm-I rpmforge-release-0.5.1-1.el5.rf. *. rpm

This will add a yum repository config file and import the appropriate GPG keys. at this point, you can set the priority of the rpmforge repository, and also of the centos repositories if you have not done so yet.

Test with this command:
Yum check-Update

It shoshould output these two lines:
Loading "Priorities" plugin
...
76 packages excluded due to repository priority Protections

The number above may differ, but There shoshould be several packages shown as being excluded.
If so then it looks like things are working so try installing something like this:
Yum install mplayer

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.