{"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":"2022-02-16T07:58:17","modified_gmt":"2022-02-16T06:58:17","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;&nbsp;<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133],"tags":[73,15],"class_list":["post-17120","post","type-post","status-publish","format-standard","category-database","tag-linux","tag-migration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v29.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Migration from CentOS 8 to Rocky Linux 8 - dbi services 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;&nbsp;\" \/>\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 services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-16T06:58:17+00:00\" \/>\n<meta name=\"author\" content=\"Open source Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\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\\\/0b4548362cac3eeff8b3eaf329e3530a\"},\"headline\":\"Migration from CentOS 8 to Rocky Linux 8\",\"datePublished\":\"2022-02-16T06:58:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/migration-from-centos-8-to-rocky-linux-8\\\/\"},\"wordCount\":241,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"Linux\",\"Migration\"],\"articleSection\":[\"Database\"],\"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 services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2022-02-16T06:58:17+00:00\",\"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\":\"Home\",\"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 services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"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\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0b4548362cac3eeff8b3eaf329e3530a\",\"name\":\"Open source Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"caption\":\"Open source Team\"},\"description\":\"Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.\",\"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 services 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;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2022-02-16T06:58:17+00:00","author":"Open source Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","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\/0b4548362cac3eeff8b3eaf329e3530a"},"headline":"Migration from CentOS 8 to Rocky Linux 8","datePublished":"2022-02-16T06:58:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/migration-from-centos-8-to-rocky-linux-8\/"},"wordCount":241,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["Linux","Migration"],"articleSection":["Database"],"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 services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2022-02-16T06:58:17+00:00","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":"Home","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 services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"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":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0b4548362cac3eeff8b3eaf329e3530a","name":"Open source Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","caption":"Open source Team"},"description":"Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.","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":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17120\/revisions"}],"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"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}