{"id":377,"date":"2017-08-29T15:22:44","date_gmt":"2017-08-29T07:22:44","guid":{"rendered":"https:\/\/blog.jsjs.org\/?p=377"},"modified":"2017-08-29T15:22:44","modified_gmt":"2017-08-29T07:22:44","slug":"how-to-set-up-repoforge-repository-on-centos","status":"publish","type":"post","link":"https:\/\/blog.jsjs.org\/?p=377","title":{"rendered":"How to set up Repoforge repository on CentOS"},"content":{"rendered":"<p><a href=\"http:\/\/repoforge.org\/\" target=\"_blank\" rel=\"noopener\">Repoforge<\/a>, previously known as RPMforge, maintains a repository of RPM packages for Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux. If you are a RHEL or CentOS user, I strongly suggest you set up Repoforge repository on your system, as it contains many useful software packages that are not available in existing stock repositories.<\/p>\n<h2>Check CentOS System Properties<\/h2>\n<p>In order to\u00a0<strong>set up Repoforge repository on CentOS<\/strong>, you first need to know two things: (1) the version of your CentOS and (2) the underlying kernel architecture (e.g., 32-bit or 64-bit).<\/p>\n<p>To find out which release version of CentOS you are using:<\/p>\n<div class=\"console\">$ cat \/etc\/redhat-release<\/div>\n<pre>CentOS release 6.3 (Final)\n<\/pre>\n<p>To check whether your CentOS kernel is 32-bit (i.e., i686) or 64-bit (i.e., x86_64) based:<\/p>\n<div class=\"console\">$ uname -a<\/div>\n<pre>Linux centos.domain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU\/Linux\n<\/pre>\n<h2>Import Repoforge GPG key<\/h2>\n<p>Next, import the Repoforge RPM repository&#8217;s official GPG key. That way, you will be able to validate all the RPM packages from the repository using the key.<\/p>\n<div class=\"console\">$ sudo rpm &#8211;import http:\/\/apt.sw.be\/RPM-GPG-KEY.dag.txt<\/div>\n<p>After running the above command, verify that the key has been imported successfully with:<\/p>\n<div class=\"console\">$ yum-config-manager rpmforge | grep gpgkey<\/div>\n<pre>gpgkey = file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-rpmforge-dag\n<\/pre>\n<p>Without importing the key in this step, you will see the following warning when you attempt to install a Repoforge RPM file later.<\/p>\n<pre>warning: \/var\/tmp\/rpm-tmp.rHqPLd: Header V3 DSA\/SHA1 Signature, key ID 6b8d79e6: NOKEY\n<\/pre>\n<h2>Enable Repoforge on CentOS<\/h2>\n<p>Now that you know enough about your CentOS system and imported the official GPG key, let&#8217;s go ahead and install Repoforge RPM on CentOS.<\/p>\n<div><ins class=\"adsbygoogle\" data-ad-client=\"ca-pub-7245163904660683\" data-ad-slot=\"5795021983\" data-adsbygoogle-status=\"done\"><ins id=\"aswift_1_expand\"><ins id=\"aswift_1_anchor\"><iframe id=\"aswift_1\" name=\"aswift_1\" width=\"336\" height=\"280\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/ins><\/ins><\/ins><\/div>\n<h3>64-bit CentOS 7:<\/h3>\n<div class=\"console\">$ sudo rpm -Uvh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm<\/div>\n<p>Note that there is no 32-bit version of CentOS 7.<\/p>\n<h3>64-bit CentOS 6:<\/h3>\n<div class=\"console\">$ sudo rpm -Uvh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm<\/div>\n<h3>32-bit CentOS 6:<\/h3>\n<div class=\"console\">$ sudo rpm -Uvh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el6.rf.i686.rpm<\/div>\n<h3>64-bit CentOS 5:<\/h3>\n<div class=\"console\">$ sudo rpm -Uvh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm<\/div>\n<h3>32-bit CentOS 5:<\/h3>\n<div class=\"console\">$ sudo rpm -Uvh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el5.rf.i386.rpm<\/div>\n<h2>Verify Repoforge Repository Status<\/h2>\n<p>Once Repoforge is installed on your system, you can verify its status by running:<\/p>\n<div class=\"console\">$ yum repolist<\/div>\n<p><a href=\"https:\/\/www.flickr.com\/photos\/xmodulo\/16083538665\/\" target=\"_blank\" rel=\"nofollow noopener\"><img decoding=\"async\" class=\"lazy\" src=\"https:\/\/farm8.staticflickr.com\/7524\/16083538665_8e7c64048a_c.jpg\" data-lazy-type=\"image\" data-lazy-src=\"https:\/\/farm8.staticflickr.com\/7524\/16083538665_8e7c64048a_c.jpg\" \/><\/a><\/p>\n<p>If Repoforge is enabled successfully, you will see &#8220;rpmforge&#8221; shown in the repository list.<\/p>\n<h2>Post-install Step<\/h2>\n<p>In general, it is not a good idea to keep Repoforge enabled as it could potentially cause conflicts with other third-party packages such as EPEL. Instead, it is better to disable Repoforge, and then enable it only when you need to install any package from Repoforge. So let&#8217;s disable Repoforge for now with the command below:<\/p>\n<div class=\"console\">$ sudo yum-config-manager &#8211;disable rpmforge<\/div>\n<p><a href=\"https:\/\/www.flickr.com\/photos\/xmodulo\/15896097228\/\" target=\"_blank\" rel=\"nofollow noopener\"><img decoding=\"async\" class=\"lazy\" src=\"https:\/\/farm8.staticflickr.com\/7503\/15896097228_dddfce9feb_c.jpg\" data-lazy-type=\"image\" data-lazy-src=\"https:\/\/farm8.staticflickr.com\/7503\/15896097228_dddfce9feb_c.jpg\" \/><\/a><\/p>\n<p>If successful, the subsequent output should display &#8220;enabled=0&#8221;.<\/p>\n<p>Now if you want to install any package from Repoforge repository, use the following command.<\/p>\n<div class=\"console\">$ sudo yum &#8211;enablerepo=rpmforge install [package-name]<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Repoforge, previously known as RPMforge, maintains a repository of RPM packages for Red Hat Enterprise Linux (RHEL), CentOS and Scientific [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=377"}],"version-history":[{"count":0,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/377\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}