{"id":598,"date":"2023-03-20T08:43:34","date_gmt":"2023-03-20T07:43:34","guid":{"rendered":"https:\/\/btrnaidu.com\/?p=598"},"modified":"2023-03-20T08:43:34","modified_gmt":"2023-03-20T07:43:34","slug":"fixing-repo-issue-with-centos-stream-8-docker-container","status":"publish","type":"post","link":"https:\/\/btrnaidu.com\/index.php\/fixing-repo-issue-with-centos-stream-8-docker-container\/","title":{"rendered":"Fixing repo issue with CentOS Stream 8 Docker container"},"content":{"rendered":"\n<p>Until CentoOS rolls out official CentOS Stream 9 docker container, if you create use centos:latest as tag then you will end up getting centos stream 8 container.<\/p>\n\n\n\n<p>This container as broken repo info and therefore when you perform <code> dnf update<\/code> or <code> yum update<\/code>, it gives an error.  Below commands fixes the broken repo links &#8211; <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i 's\/mirrorlist\/#mirrorlist\/g' \/etc\/yum.repos.d\/CentOS-*<br>sed -i 's|#baseurl=http:\/\/mirror.centos.org|baseurl=http:\/\/vault.centos.org|g' \/etc\/yum.repos.d\/CentOS-*<br>dnf update -y<\/code><\/pre>\n\n\n\n<p>This fixes and broken repo links and makes updates or installation of new packages possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Until CentoOS rolls out official CentOS Stream 9 docker container, if you create use centos:latest as tag then you will end up getting centos stream 8 container. This container as broken repo info and therefore when you perform dnf update or yum update, it gives an error. Below commands fixes the broken repo links &#8211; &hellip; <a href=\"https:\/\/btrnaidu.com\/index.php\/fixing-repo-issue-with-centos-stream-8-docker-container\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing repo issue with CentOS Stream 8 Docker container<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[200,161],"class_list":["post-598","post","type-post","status-publish","format-standard","hentry","category-personal-update","tag-centos-stream-8","tag-docker"],"_links":{"self":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/comments?post=598"}],"version-history":[{"count":1,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/598\/revisions"}],"predecessor-version":[{"id":599,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/598\/revisions\/599"}],"wp:attachment":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/media?parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/categories?post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/tags?post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}