码迷,mamicode.com
首页 > 其他好文 > 详细

RPMForge 软件仓库

时间:2018-11-11 17:18:17      阅读:838      评论:0      收藏:0      [点我收藏+]

标签:统一   ISE   text   none   min   pkg   inux   ext   margin   

参考:How to Enable RPMForge Repository in RHEL/CentOS 7.x/6.x/5.x

RPMForge / RepoForge这两个项目已经死亡,不应该使用 - 请使用EPEL Repository。

简介

RPMforge软件仓库用于为Red Hat Enterprise Linux(RHEL)和Community ENTerprise操作系统(CentOS)提供第三方软件包。RPMforge软件仓库不是RHEL或CentOS的一部分,但它旨在与这些操作系统一起使用。 完整的RPMForge包列表可以在http://packages.sw.be/上找到。目前已提供rpm包多大5000多个。 

在RHEL / CentOS 7/6/5/4中安装RPMForge软件仓库

根据不同系统和版本执行对应命令

RHEL/CentOS 7 64 Bit
技术分享图片
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
View Code
RHEL/CentOS 6 32-64 Bit
技术分享图片
## RHEL/CentOS 6 32 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.i686.rpm

## RHEL/CentOS 6 64 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
View Code
RHEL/CentOS 5 32-64 Bit
技术分享图片
## RHEL/CentOS 5 32 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

## RHEL/CentOS 5 64 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
View Code
RHEL/CentOS 4 32-64 Bit
技术分享图片
## RHEL/CentOS 4 32 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.i386.rpm

## RHEL/CentOS 4 64 Bit OS ##
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm
View Code

怎样知道系统是32 位还是64 位?

使用uname -a命令,32位系统会显示i686 i686 i386 GNU/Linux;64位会显示x86_64 x86_64 x86_64 GNU/Linux.

32 Bit RHEL/CentOS
技术分享图片
# uname -r

Linux tecmint.com 2.6.32-279.5.2.el6.i686 #1 SMP Thu Aug 23 22:16:48 UTC 2012 i686 i686 i386 GNU/Linux
View Code
64 Bit RHEL/CentOS
技术分享图片
# uname -r

Linux tecmint.com 2.6.32-279.5.2.el6.i686 #1 SMP Thu Aug 23 22:16:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
View Code

在RHEL / CentOS 7/6/5/4下导入RPMForge软件仓库密钥

下载并安装DAG’s GPG key 

技术分享图片
# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt
View Code

GPG密钥存储在 /etc/pki/rpm-gpg 目录,通常是RPM-GPG-KEY-rpmforge-dag文件

在RHEL / CentOS 7/6/5/4下使用RPMForge软件仓库安装软件

通过--enablerepo=epel 选项,表明我们操作的yum命令是在epel这个仓库进行的。

技术分享图片
# yum --enablerepo=rpmforge install aria2
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
rpmforge                                                                                                                                       
Setting up Install Process
Dependencies Resolved

=================================================================================================
 Package                         Arch            Version                Repository       Size
=================================================================================================
Installing:
 aria2                           i686           1.15.1-1.el6.rf        rpmforge         1.2 M
Installing for dependencies:
 nettle                          i686           2.2-1.el6.rf           rpmforge         359 k

Transaction Summary
=================================================================================================
Install       2 Package(s)
View Code

在RHEL / CentOS 7/6/5/4下紧拥RPMForge软件仓库

修改RPMForge软件仓库配置文件/etc/yum.repos.d/rpmforge.repo.

enabled=1 改为 enabled=0。1意味着打开,0意味着关闭

 

RPMForge 软件仓库

标签:统一   ISE   text   none   min   pkg   inux   ext   margin   

原文地址:https://www.cnblogs.com/kelamoyujuzhen/p/9942578.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!