{"id":31891,"date":"2023-03-13T05:44:24","date_gmt":"2023-03-13T05:44:24","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/?post_type=ht_kb&#038;p=31891"},"modified":"2023-10-19T08:41:43","modified_gmt":"2023-10-19T08:41:43","slug":"how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/","title":{"rendered":"How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-black-color has-text-color\">This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum<\/p>\n<\/blockquote>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Step 1.<\/strong>&nbsp;Login to the server via SSH as the root user, or open the Terminal from WHM as the root user<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Step 2.<\/strong>&nbsp;Move your existing repository out of the way so that you can revert the changes if necessary:<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><code>mv -v \/etc\/yum.repos.d\/CentOS-Base.repo{,-backup}<\/code><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Step 3.<\/strong>&nbsp;Create a new empty repository file:&nbsp;<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><code>touch \/etc\/yum.repos.d\/CentOS-Base.repo<\/code><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Step 4.<\/strong>&nbsp;Open this newly created file with the text editor of your choice<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Step 5.<\/strong>&nbsp;Paste the following configuration into the file:<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><code>[base]<br>name=CentOS-$releasever - Base<br>baseurl=<a href=\"http:\/\/vault.centos.org\/$releasever\/os\/$basearch\/\">http:\/\/vault.centos.org\/$releasever\/os\/$basearch\/<\/a><br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<br>enabled=1<br>metadata_expire=never<\/code><br><br><code>[updates]<br>name=CentOS-$releasever - Updates<br>baseurl=<a href=\"http:\/\/vault.centos.org\/$releasever\/updates\/$basearch\/\">http:\/\/vault.centos.org\/$releasever\/updates\/$basearch\/<\/a><br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<br>enabled=1<br>metadata_expire=never<\/code><br><br><code>[extras]<br>name=CentOS-$releasever - Extras<br>baseurl=<a href=\"http:\/\/vault.centos.org\/$releasever\/extras\/$basearch\/\">http:\/\/vault.centos.org\/$releasever\/extras\/$basearch\/<\/a><br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<br>enabled=1<br>metadata_expire=never<\/code><br><br><code>[contrib]<br>name=CentOS-$releasever - Contrib<br>baseurl=<a href=\"http:\/\/vault.centos.org\/$releasever\/contrib\/$basearch\/\">http:\/\/vault.centos.org\/$releasever\/contrib\/$basearch\/<\/a><br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<br>enabled=0<br>metadata_expire=never<\/code><br><br><code>[centosplus]<br>name=CentOS-$releasever - CentOSPlus<br>baseurl=<a href=\"http:\/\/vault.centos.org\/$releasever\/centosplus\/$basearch\/\">http:\/\/vault.centos.org\/$releasever\/centosplus\/$basearch\/<\/a><br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<br>enabled=0<br>&nbsp;metadata_expire=never<\/code><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>Step 6.&nbsp;<\/strong>Clear the yum cache and then remake it:<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">yum clean all<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">yum makecache<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">yum update<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">Please note that this will&nbsp;<strong>NOT<\/strong>&nbsp;provide your server with updates to fix defects or security vulnerabilities as is mentioned earlier in this article<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum Step 1.&nbsp;Login to the server via SSH as the root user, or open the Terminal from WHM as the root user Step 2.&nbsp;Move your existing repository out of&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[1178],"ht-kb-tag":[1408,1406,355,1407,413,480,525,608,691,715,844,1094,1409],"class_list":["post-31891","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-servers","ht_kb_tag-1408","ht_kb_tag-base","ht_kb_tag-enable","ht_kb_tag-eol","ht_kb_tag-fix","ht_kb_tag-how-to","ht_kb_tag-installation","ht_kb_tag-manually","ht_kb_tag-on","ht_kb_tag-package","ht_kb_tag-repository","ht_kb_tag-via","ht_kb_tag-yum"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Fix The Base Repository On Eol Centos 6 | 1-grid<\/title>\n<meta name=\"description\" content=\"This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum -\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Fix The Base Repository On Eol Centos 6 | 1-grid\" \/>\n<meta property=\"og:description\" content=\"This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum -\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-19T08:41:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/\",\"name\":\"How To Fix The Base Repository On Eol Centos 6 | 1-grid\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2023-03-13T05:44:24+00:00\",\"dateModified\":\"2023-10-19T08:41:43+00:00\",\"description\":\"This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum -\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Fix The Base Repository On Eol Centos 6 | 1-grid","description":"This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/","og_locale":"en_US","og_type":"article","og_title":"How To Fix The Base Repository On Eol Centos 6 | 1-grid","og_description":"This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum -","og_url":"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2023-10-19T08:41:43+00:00","twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/","url":"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/","name":"How To Fix The Base Repository On Eol Centos 6 | 1-grid","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2023-03-13T05:44:24+00:00","dateModified":"2023-10-19T08:41:43+00:00","description":"This Article will show you How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum -","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-manually-fix-the-base-repository-on-eol-centos-6-to-enable-package-installation-via-yum\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/31891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=31891"}],"version-history":[{"count":2,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/31891\/revisions"}],"predecessor-version":[{"id":31982,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/31891\/revisions\/31982"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=31891"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=31891"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=31891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}