{"id":17120,"date":"2022-02-16T07:58:17","date_gmt":"2022-02-16T06:58:17","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/"},"modified":"2024-11-08T15:38:32","modified_gmt":"2024-11-08T14:38:32","slug":"migration-from-centos-8-to-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/","title":{"rendered":"Migration from CentOS 8 to Rocky Linux 8"},"content":{"rendered":"<p>This Blog describes the Migration from CentOS 8 to Rocky Linux 8.<br \/>\nAnd hopefully there is a backup or VM Snapshot in place when something goes wrong.<\/p>\n<p>At first Updating CentOS 8 to the latest is required, but this is now not so easy, most Repositiory Mirrors are deprecated.<br \/>\nAs Preparation an adaptation of the CentOS Repo files is needed to get this task done.<\/p>\n<p>In this case the following repo files where in place, CentOS-AppStream.repo, CentOS-Base.repo, CentOS-Extras.repo, CentOS-PowerTools.repo.<br \/>\nSo a adaptation of the baseurl in these four files is required.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n$ CentOS-AppStream.repo\n$ baseurl=http:\/\/vault.centos.org\/$contentdir\/$releasever\/AppStream\/$basearch\/os\/\n<\/pre>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n$ CentOS-Base.repo\n$ baseurl=http:\/\/vault.centos.org\/$contentdir\/$releasever\/BaseOS\/$basearch\/os\/\n<\/pre>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n$ CentOS-Extras.repo\n$ baseurl=http:\/\/vault.centos.org\/$contentdir\/$releasever\/extras\/$basearch\/os\/\/\n<\/pre>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n$ CentOS-PowerTools.repo\n$ baseurl=http:\/\/vault.centos.org\/$contentdir\/$releasever\/PowerTools\/$basearch\/os\/\n<\/pre>\n<p>The repositories at http:\/\/vault.centos.org working, most other as I wrote are deprecated and not reachable.<\/p>\n<p>After the adaptation of the repo file update CentOS 8 to 8.5.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n$ dnf update\n<\/pre>\n<p>And reboot afterwards.<br \/>\nIf possible create after the CentOS 8.5 upgrade a backup or snapshot.<\/p>\n<p>The CentOS repo files renamed to repo.rpmsave and there will be new ones named CentOS-Linux.. now.<\/p>\n<p>Rocky Linux provides a migration script which ca be downloaded using curl.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n$ cd \/tmp\n$ mkdir rocky\n$ cd rocky\n$ curl https:\/\/raw.githubusercontent.com\/rocky-linux\/rocky-tools\/main\/migrate2rocky\/migrate2rocky.sh -o migrate2rocky.sh\n$ chmod u+x migrate2rocky.sh\n<\/pre>\n<p>This scrip know three switches, -h for help, -r for run and -V for verify.<br \/>\nFor the migration we need -r.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n$ .\/migrate2rocky.sh -r\n<\/pre>\n<p>There will be an error message about invalid URLs, this is related to CentOS so it can be ignored.<br \/>\nThis script will replace the CentOS packages with the Rocky Linux ones, so it will run a while.<br \/>\nWhen it has finished successfully and the system was rebootet the migration is done.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">\n# cat \/etc\/os-release\n$ NAME=\"Rocky Linux\"\n$ VERSION=\"8.5 (Green Obsidian)\"\n$ ID=\"rocky\"\n$ ID_LIKE=\"rhel centos fedora\"\n$ VERSION_ID=\"8.5\"\n$ PLATFORM_ID=\"platform:el8\"\n$ PRETTY_NAME=\"Rocky Linux 8.5 (Green Obsidian)\"\n$ ANSI_COLOR=\"0;32\"\n$ CPE_NAME=\"cpe:\/o:rocky:rocky:8:GA\"\n$ HOME_URL=\"https:\/\/rockylinux.org\/\"\n$ BUG_REPORT_URL=\"https:\/\/bugs.rockylinux.org\/\"\n$ ROCKY_SUPPORT_PRODUCT=\"Rocky Linux\"\n$ ROCKY_SUPPORT_PRODUCT_VERSION=\"8\"\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This Blog describes the Migration from CentOS 8 to Rocky Linux 8. And hopefully there is a backup or VM Snapshot in place when something goes wrong. At first Updating CentOS 8 to the latest is required, but this is now not so easy, most Repositiory Mirrors are deprecated. As Preparation an adaptation of the [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[73,2562],"type_dbi":[],"class_list":["post-17120","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","tag-linux","tag-migration-2"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Migration from CentOS 8 to Rocky Linux 8 - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Migration from CentOS 8 to Rocky Linux 8\" \/>\n<meta property=\"og:description\" content=\"This Blog describes the Migration from CentOS 8 to Rocky Linux 8. And hopefully there is a backup or VM Snapshot in place when something goes wrong. At first Updating CentOS 8 to the latest is required, but this is now not so easy, most Repositiory Mirrors are deprecated. As Preparation an adaptation of the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-16T06:58:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-08T14:38:32+00:00\" \/>\n<meta name=\"author\" content=\"Open source Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Open source Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\"},\"author\":{\"name\":\"Open source Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/59554f0d99383431eb6ed427e338952b\"},\"headline\":\"Migration from CentOS 8 to Rocky Linux 8\",\"datePublished\":\"2022-02-16T06:58:17+00:00\",\"dateModified\":\"2024-11-08T14:38:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\"},\"wordCount\":241,\"commentCount\":0,\"keywords\":[\"Linux\",\"migration\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\",\"name\":\"Migration from CentOS 8 to Rocky Linux 8 - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2022-02-16T06:58:17+00:00\",\"dateModified\":\"2024-11-08T14:38:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/59554f0d99383431eb6ed427e338952b\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Migration from CentOS 8 to Rocky Linux 8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/59554f0d99383431eb6ed427e338952b\",\"name\":\"Open source Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g\",\"caption\":\"Open source Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/open-source-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Migration from CentOS 8 to Rocky Linux 8 - dbi Blog","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:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/","og_locale":"en_US","og_type":"article","og_title":"Migration from CentOS 8 to Rocky Linux 8","og_description":"This Blog describes the Migration from CentOS 8 to Rocky Linux 8. And hopefully there is a backup or VM Snapshot in place when something goes wrong. At first Updating CentOS 8 to the latest is required, but this is now not so easy, most Repositiory Mirrors are deprecated. As Preparation an adaptation of the [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/","og_site_name":"dbi Blog","article_published_time":"2022-02-16T06:58:17+00:00","article_modified_time":"2024-11-08T14:38:32+00:00","author":"Open source Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Open source Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/"},"author":{"name":"Open source Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/59554f0d99383431eb6ed427e338952b"},"headline":"Migration from CentOS 8 to Rocky Linux 8","datePublished":"2022-02-16T06:58:17+00:00","dateModified":"2024-11-08T14:38:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/"},"wordCount":241,"commentCount":0,"keywords":["Linux","migration"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/","url":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/","name":"Migration from CentOS 8 to Rocky Linux 8 - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2022-02-16T06:58:17+00:00","dateModified":"2024-11-08T14:38:32+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/59554f0d99383431eb6ed427e338952b"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Migration from CentOS 8 to Rocky Linux 8"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/59554f0d99383431eb6ed427e338952b","name":"Open source Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eb4fb12e386e8c41fdef0733e8114594cf2653e4f55e9fa2161442b8eaf3f657?s=96&d=mm&r=g","caption":"Open source Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/open-source-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=17120"}],"version-history":[{"count":2,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17120\/revisions"}],"predecessor-version":[{"id":35674,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17120\/revisions\/35674"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=17120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=17120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=17120"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=17120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}