In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install RPMforge in the CentOS system". In the daily operation, I believe that many people have doubts about how to install RPMforge in the CentOS system. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "how to install RPMforge in the CentOS system". Next, please follow the editor to study!
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 playback tools. RPMforge is not part of the Red Hat Linux product or CentOS, but it is designed for these Linux suites.
Note: since this installation source is not part of CentOS itself, questions about technical support should be sent to RPMforge maintainers.
The RPMforge package is available in rpm format and is generally available. It is important to note that some packages are newer than the official version provided by CentOS, so you should not install them blindly. Before upgrading to replace the official software package provided by CentOS, you should make sure that you don't break anything important. Although you can correct any mistakes in most cases, it's best to avoid similar situations.
The use of CentOS 5.0s
If you plan to use this software repository, you may want to install Priorities because some of the packages in RPMforge are newer than their counterparts in ContOS.
The comments below show how the maintainer of yum feels. However, from a practical point of view, if you want to use RPMforge installation sources, there is no way to prevent these ContOS original packages from being overwritten. Also, there are no problems reported with the "yum-priorities" plug-in.
Note: please note what Seth Vidal, the upstream maintainer of yum, said about "yum priorities" in September 2009.
... Introduction, last part: (again, most people end up creating "yum-priorities")
God, I hope people don't create yum priorities. It scares me that there are so many things about priorities. It almost reminds me of apt "pinning" and wants to yell.
1.1 Priorities (priority)
Yum-priorities package for CentOS 5 installation source:
The code is as follows:
Yum install yum-priorities
(install the YUM priority plug-in and generate the / 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 ensure that yum-priorities is available and confirm that it contains 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 and create the priorities by adding the following lines of text:
The code is as follows:
Priority=N
N is an integer from 1 to 99 for each installation source entry.
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 files), etc., priority=N (N is an integer greater than 10 that you like)
1.2 RPMforge
A complete list of RPMforge packages is available at http://dag.wieers.com/packages/.
Download the rpmforge-release package. Select the download that matches your OS architecture (i386/x86_64) in the two links below. If you are not sure which architecture it is, run the uname-I command.
The code is as follows:
I386 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
X86164 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
To make the installation source available, the preferred available and installed rpmforge-release package can only be one of the two listed above.
Install GPG key for DAG
The code is as follows:
Rpm-- import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Verify the downloaded package:
The code is as follows:
Rpm-K rpmforge-release-0.5.1-1.el5.rf.*.rpm
The verification is correct, and the results show that:
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 GPG keys into the RPM database.
As long as you pass the md5 checksum of the injected package's key and trust Dag and et al., they will be secure and trusted.
Install the rpmforge-release package
The code is as follows:
Rpm-I rpmforge-release-0.5.1-1.el5.rf.*.rpm
This will add the yum installation source profiles rpmforge.repo and rpmforge-testing.repo (for testing) at / etc/yum.repos.d and import the appropriate GPG keys.
The content of the rpmforge.repo file is:
# 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 content of the rpmforge-testing.repo file is:
# 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
At this point. You can configure the priority of the RPMForge installation source (priority), or if you have not previously configured the priority of the CentOS installation source, you can also configure it.
Test with the following command:
The code is as follows:
Yum check-update
It will output two lines of information similar to the following:
The code is as follows:
Loading "priorities" plugin
...
76 packages excluded due to repository priority protections
In your CentOS system, the above number may be different, but it indicates that some packages are excluded.
If you see the above information, it indicates that the RPMforge installation source and priority configuration have worked. So you can try to run something like yum install mplayer?? If you see the above information, it indicates that the RPMforge installation source and priority configuration have worked. So you can try to run something like yum install mplayer?? If you see the above information, it indicates that the RPMforge installation source and priority configuration have worked. So you can try to run a command like yum install mplayer to install some software.
At this point, the study on "how to install RPMforge in the CentOS system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.