{"id":20,"date":"2013-07-27T19:20:00","date_gmt":"2013-07-27T19:20:00","guid":{"rendered":""},"modified":"2021-08-31T10:12:44","modified_gmt":"2021-08-31T09:12:44","slug":"adding-centos-6-to-redhat-6","status":"publish","type":"post","link":"https:\/\/www.srivittal.com\/wp\/?p=20","title":{"rendered":"Adding CentOS 6 to RedHat 6"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: left;\">First you need to add the CentOS repository, create this file using your favorite text editor:<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><code>[root@localhost ~]# <b>vi \/etc\/yum.repos.d\/centos.repo<\/b><\/code><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">Adding the following contents, note the \u20195\u2032 has to be hardcoded to either 5 or 6 depending on your RHEL version.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><code>[centos]<br \/>name=CentOS $releasever - $basearch<br \/>baseurl=http:\/\/ftp.heanet.ie\/pub\/centos\/<b>5<\/b>\/os\/$basearch\/<br \/>enabled=1<br \/>gpgcheck=0<\/code><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">Once you\u2019ve completed this step, you can now use \u201cyum\u201d to install CentOS packages.<\/p>\n<p><b><span style=\"color: red;\">Please note: <\/span><\/b><span style=\"color: red;\"><span style=\"color: black;\">The baseurl parameter above points to version 5 of the CentOS repos. If you use 6, change the URL accordingly.<\/span><\/span> <\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>First you need to add the CentOS repository, create this file using your favorite text editor: [root@localhost ~]# vi \/etc\/yum.repos.d\/centos.repo Adding the following contents, note the \u20195\u2032 has to be hardcoded to either 5 or 6 depending on your RHEL version. [centos]name=CentOS $releasever &#8211; $basearchbaseurl=http:\/\/ftp.heanet.ie\/pub\/centos\/5\/os\/$basearch\/enabled=1gpgcheck=0 Once you\u2019ve completed this step, you can now use \u201cyum\u201d &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-centos","category-redhat-linux","entry entry-center"],"_links":{"self":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":1,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":111,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions\/111"}],"wp:attachment":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}