{"id":430,"date":"2012-02-10T00:59:59","date_gmt":"2012-02-10T00:59:59","guid":{"rendered":"http:\/\/shivdev.com\/blog\/?p=430"},"modified":"2012-07-06T21:37:34","modified_gmt":"2012-07-06T21:37:34","slug":"installing-rpms-from-your-cdrom-by-adding-it-to-yum-repos","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2012\/02\/10\/installing-rpms-from-your-cdrom-by-adding-it-to-yum-repos\/","title":{"rendered":"Installing RPMs from your CDROM by adding it to yum.repos"},"content":{"rendered":"<p>RHEL can be such a pain! I installed RHEL 6.1 and there was no <strong>gcc<\/strong> on there!?! Now for whatever reason I needed it and it wasn&#8217;t able to get <strong>yum install gcc<\/strong> to work. I&#8217;m not surprised at all &#8211; RHEL\/CentOS are well known for being tortuous!<\/p>\n<p>So now I needed to install the gcc* rpm from the CDROM and again I run into dependency hell. No big deal &#8211; it&#8217;s a well known RHEL problem.<\/p>\n<p>Fortunately, I found <a href=\"http:\/\/platonic.techfiz.info\/2009\/01\/13\/adding-cdrom-to-yum-as-repo\/\">Adding cdrom to yum as repo<\/a> which partially rescued me. Next, I ran into Public key for kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm is not installed and followed <a href=\"http:\/\/abnercyh.wordpress.com\/2012\/01\/05\/public-key-for-foo-rpm-is-not-installed\/\">this link<\/a> to get me going.<\/p>\n<blockquote><p>Step 1: Mount your CDROM to \/mnt\/cdrom<br \/>\n$ mount \/dev\/cdrom \/mnt\/cdrom (For Example)<\/p>\n<p>Step 2: Add the CDROM to your yum.repos (Tell yum to look at the CDROM as well while installing packages)<br \/>\n$ vi \/etc\/yum.repos.d\/file.repo<\/p>\n<p>Step 3: Paste the following<br \/>\n<strong>[local]<br \/>\nname=Local CD Repo<br \/>\nbaseurl=file:\/\/\/mnt\/cdrom<\/strong><\/p>\n<p>Step 4: Tell yum to ignore any gpg key checking<br \/>\n$ vi \/etc\/yum.conf<br \/>\nChange gpgcheck=1 to <strong>gpgcheck=0<\/strong><\/p>\n<p>Step 5: Run the yum install and if found on the CDROM it&#8217;ll install it for you<br \/>\n$ yum install gcc (in my case)<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>RHEL can be such a pain! I installed RHEL 6.1 and there was no gcc on there!?! Now for whatever reason I needed it and it wasn&#8217;t able to get yum install gcc to work. I&#8217;m not surprised at all &#8211; RHEL\/CentOS are well known for being tortuous! So now I needed to install the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,12],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/430"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=430"}],"version-history":[{"count":6,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":501,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/430\/revisions\/501"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}