{"id":4222,"date":"2024-06-20T18:54:23","date_gmt":"2024-06-20T13:24:23","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=4222"},"modified":"2025-04-08T12:32:26","modified_gmt":"2025-04-08T07:02:26","slug":"centos-repo-list-working-urls","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/centos-repo-list-working-urls\/","title":{"rendered":"CentOS Repo List: Working URLs"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/VirtualBox-Promiscuous-Mode-1.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"375\" data-id=\"4236\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/VirtualBox-Promiscuous-Mode-1.jpg\" alt=\"Working Repo URLs List: CentOS 7 &amp; CentOS 8\" class=\"wp-image-4236\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/VirtualBox-Promiscuous-Mode-1.jpg 1200w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/VirtualBox-Promiscuous-Mode-1-300x94.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/VirtualBox-Promiscuous-Mode-1-1024x320.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/VirtualBox-Promiscuous-Mode-1-768x240.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>This knowledge base serves as an easy-to-follow guide for configuring repository URLs for CentOS 7 and CentOS 8. It uses repository lists from the <a href=\"https:\/\/vault.centos.org\/\" target=\"_blank\" rel=\"noopener\">CentOS vault mirror<\/a>, ensuring that these repositories remain accessible even after the OS has reached its end of life. Ideal for system administrators, developers, and CentOS enthusiasts, this guide guarantees effortless access to repository URLs for BaseOS, AppStream, Extras, CentOSPlus, and more, ensuring your CentOS machines are properly configured.<\/p>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-configure-a-repo-in-centos\">How to Configure a Repo in CentOS?<\/h3>\n\n\n<p>Before modifying the repository files, ensure you have appropriate backup procedures in place:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo cp \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup<\/code><\/pre>\n\n\n\n<p><strong>Editing Repository Files<\/strong>:<\/p>\n\n\n\n<p>To modify the repository sources, open the respective repository configuration file (<strong>\/etc\/yum.repos.d\/CentOS-Base.repo<\/strong>) using your preferred text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vi \/etc\/yum.repos.d\/CentOS-Base.repo<\/code><\/pre>\n\n\n\n<p>Replace the content in the file with the configurations listed below based on your CentOS version.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"centos-7\">CentOS 7<\/h3>\n\n\n<p>To configure the working repositories for CentOS 7, add the following to your <strong>\/etc\/yum.repos.d\/CentOS-Base.repo<\/strong> file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;base]\nname=CentOS-$releasever - Base\nbaseurl=https:\/\/vault.centos.org\/7.9.2009\/os\/$basearch\/\ngpgcheck=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7\nenabled=1\n\n&#91;updates]\nname=CentOS-$releasever - Updates\nbaseurl=https:\/\/vault.centos.org\/7.9.2009\/updates\/$basearch\/\ngpgcheck=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7\nenabled=1\n\n&#91;extras]\nname=CentOS-$releasever - Extras\nbaseurl=https:\/\/vault.centos.org\/7.9.2009\/extras\/$basearch\/\ngpgcheck=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7\nenabled=1\n\n&#91;centosplus]\nname=CentOS-$releasever - CentOSPlus\nbaseurl=https:\/\/vault.centos.org\/7.9.2009\/centosplus\/$basearch\/\ngpgcheck=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7\nenabled=0<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"centos-8\">CentOS 8<\/h3>\n\n\n<p>To configure the working repositories for CentOS 8, add the following to your <strong>\/etc\/yum.repos.d\/CentOS-Base.repo<\/strong> file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;baseos]\nname=CentOS Linux $releasever - BaseOS\nbaseurl=https:\/\/vault.centos.org\/$contentdir\/$releasever\/BaseOS\/$basearch\/os\/\ngpgcheck=1\nenabled=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\n\n&#91;appstream]\nname=CentOS Linux $releasever - AppStream\nbaseurl=https:\/\/vault.centos.org\/$contentdir\/$releasever\/AppStream\/$basearch\/os\/\ngpgcheck=1\nenabled=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\n\n&#91;extras]\nname=CentOS Linux $releasever - Extras\nbaseurl=https:\/\/vault.centos.org\/$contentdir\/$releasever\/extras\/$basearch\/os\/\ngpgcheck=1\nenabled=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\n\n&#91;centosplus]\nname=CentOS Linux $releasever - Plus\nbaseurl=https:\/\/vault.centos.org\/$contentdir\/$releasever\/centosplus\/$basearch\/os\/\ngpgcheck=1\nenabled=0\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-centosofficial\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-8be3f11f\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<p>When configuring repo list URLs for CentOS, it&#8217;s essential to ensure that the URLs correspond correctly with the specific CentOS version installed on your system. As CentOS versions advance, older releases are archived, and their repositories may move to designated URLs for historical releases.<\/p>\n\n\n\n<p>CentOS vault mirror is an invaluable resource for maintaining access to packages and updates even after an OS version has reached its end of life. This knowledge base provides reliable and tested URLs for configuring repositories for CentOS 7 and CentOS 8, ensuring that it can continue to use and maintain its systems seamlessly.<\/p>\n\n\n\n<p>You can&nbsp;also easily configure the&nbsp;<a href=\"https:\/\/www.veeble.org\/kb\/centos-stream-repo-list-working-urls\/\" target=\"_blank\" rel=\"noopener\">Repo URL list for CentOS Stream<\/a>&nbsp;too. To find the working URLs, visit this link:&nbsp;<a href=\"https:\/\/www.veeble.org\/kb\/centos-stream-repo-list-working-urls\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.veeble.org\/kb\/centos-stream-repo-list-working-urls\/<\/a>.<\/p>\n\n\n\n<div style=\"height:49px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-d6052587 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Scale Your Business with Veeble VPS Hosting<\/h3><p class=\"uagb-cta__desc\">Take your business to new heights with Veeble VPS hosting. Our plans are designed to give you the speed, power, and reliability you need to succeed.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/vps-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Choose Your Plan<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n\n\n\n<div style=\"height:49px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Also Read:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-veeble-hosting wp-block-embed-veeble-hosting\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"LBckB1GHyx\"><a href=\"https:\/\/www.veeble.com\/kb\/almalinux-yum-repository-list-working-urls\/\">AlmaLinux YUM Repository List (Working URLs)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;AlmaLinux YUM Repository List (Working URLs)&#8221; &#8212; Veeble Hosting\" src=\"https:\/\/www.veeble.com\/kb\/almalinux-yum-repository-list-working-urls\/embed\/#?secret=yAD4lOJBJt#?secret=LBckB1GHyx\" data-secret=\"LBckB1GHyx\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS working repo list URLS for the file: &#8220;CentOS-Base.repo&#8221; to continue using CentOS 7 &amp; CentOS machines even after End Of Life.<\/p>\n","protected":false},"author":7,"featured_media":8502,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","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":"","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":"set","ast-page-background-enabled":"default","ast-page-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":"","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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-4222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-installation"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/CentOS-Repo-List-Working-URLs.jpg",1536,1024,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/CentOS-Repo-List-Working-URLs-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/CentOS-Repo-List-Working-URLs-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/CentOS-Repo-List-Working-URLs-768x512.jpg",768,512,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/CentOS-Repo-List-Working-URLs-1024x683.jpg",1024,683,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/CentOS-Repo-List-Working-URLs.jpg",1536,1024,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/CentOS-Repo-List-Working-URLs.jpg",1536,1024,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"CentOS working repo list URLS for the file: \"CentOS-Base.repo\" to continue using CentOS 7 &amp; CentOS machines even after End Of Life.","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/4222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=4222"}],"version-history":[{"count":21,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/4222\/revisions"}],"predecessor-version":[{"id":7121,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/4222\/revisions\/7121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8502"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=4222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=4222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=4222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}