• How to Enable RPMForge Repository in RHEL/CentOS 7.x/6.x/5.x


    RPMforge repository is a utility that is used to install third party software packages under Red Hat Enterprise Linux (RHEL) and Community ENTerprise Operating System (CentOS). It provides more than 5000 software packages in the rpm format for these Linux distributions.

    RPMforge repository not a part of RHEL or CentOS but it is designed to work with these operating systems. The complete list of RPMForge packages can be fount at http://packages.sw.be/.

    Install RPMForge Repository in Centos

    Install RPMForge Repository in RedHat and Centos

    Read Also : Install and Enable EPEL Repository in RHEL/CentOS 7/6/5

    This article gives you a steps to install and enable RPMForge repository under RHEL/CentOS 7, 6, 5, 4 systems.

    Verifying RHEL/CentOS is 32 Bit or 64 Bit System

    We use “uname -a” command to verify a system, whether it is 32 bit or 64 bit.

    The 32 bit system will show i686 i686 i386 GNU/Linux and 64 bit server shows x86_64 x86_64 x86_64 GNU/Linux.

    So, it’s very easy to verify whether a system is 32 or 64 bit using “uname -a” command from the command line shell.

    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
    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

    Installing RPMForge Repository in RHEL/CentOS 6/5/4

    Download and Install RPMForge repository by selecting appropriate rpm package for your system.

    For 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
    
    For 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
    For 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
    For 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

    Note : The RPMForge repository will be installed under /etc/yum.repod directory as a file rpmforge.repo.

    Importing RPMForge Repository Key in RHEL/CentOS 7/6/5/4

    Next, you’ll need to download and install DAG’s GPG key for your system.

    # wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
    # rpm --import RPM-GPG-KEY.dag.txt

    Note : The imported GPG key stored under /etc/pki/rpm-gpg directory as a file RPM-GPG-KEY-rpmforge-dag.

    Installing Packages using RPMForge Repository in RHEL/CentOS 7/6/5/4

    Let’s try installing something using rpmforge repository.

    # yum --enablerepo=rpmforge install aria2
    Sample Output :
    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)

    So, whenever a new packages are install using Yum command the RPMForge repository will be included.

    Disable RPMForge Repository in RHEL/CentOS 7/6/5/4

    To disable RPMForge repository simply open the file /etc/yum.repos.d/rpmforge.repo.

    # vi /etc/yum.repos.d/rpmforge.repo

    Change “enabled=1” to “enabled=0“. 0 means turn-off and 1 means turn-on.

    ### Name: RPMforge RPM Repository for RHEL 6 - dag
    ### URL: http://rpmforge.net/
    [rpmforge]
    name = RHEL $releasever - RPMforge.net - dag
    baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
    mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
    #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
    enabled = 0
    protect = 0
    gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
    gpgcheck = 1
  • 相关阅读:
    3星|《土地制度与中国发展》:建国以来土地政策研究与分析,数据有点旧,观点都见过
    3星|《AI极简经济学》:AI的预测、决策、战略等方面的应用案例介绍
    4星|《哈佛商业评论》2018年第12期:海尔取消科层制比较成功
    房企大裁员;争议贺建奎;破产阴影下的ofo:4星|《财经》第29期
    3星|《数据资本时代》:数据会导致资本贬值,缺数据和实例证明
    3星|徐远《城里的房子》:国内一线城市核心区域的房价还会持续上涨
    5星|《伟大创意的诞生:创新自然史》:开放连接意外错误催生创意
    2星|《流量营销》:微信营销资料汇编,缺乏实战经验
    4星|《对赌:信息不足时如何做出高明决策》:赌徒概率思维最优
    5星|《大江大河》:改革开放前30年的商海故事(严重剧透)
  • 原文地址:https://www.cnblogs.com/askDing/p/6341461.html
Copyright © 2020-2023  润新知