{"id":2848,"date":"2020-03-06T07:35:27","date_gmt":"2020-03-06T02:05:27","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=2848"},"modified":"2021-05-17T19:29:51","modified_gmt":"2021-05-17T13:59:51","slug":"how-to-upgrade-centos-7-to-centos-8","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/","title":{"rendered":"How to Upgrade CentOS 7 to CentOS 8"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Step 1: Install the EPEL Repository<\/h3>\n\n\n\n<p>To start off, install the <strong>EPL<\/strong> repository by running:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install epel-release -y\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Install yum-utils Tools<\/h3>\n\n\n\n<p>After successfully installing <strong>EPEL<\/strong>, install yum-utils by running the command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install yum-utils\n<\/pre>\n\n\n\n<p>Thereafter, you need to resolves RPM packages by executing the command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install rpmconf\n# rpmconf -a\n<\/pre>\n\n\n\n<p>Next, perform a clean-up of all the packages you don\u2019t require.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># package-cleanup --leaves\n# package-cleanup --orphans\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Install the dnf in CentOS 7<\/h3>\n\n\n\n<p>Now install  dnf package manager which is the default package manager for <strong>CentOS 8<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install dnf\n<\/pre>\n\n\n\n<p>You also need to remove the yum package manager using the command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># dnf -y remove yum yum-metadata-parser\n# rm -Rf \/etc\/yum<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Upgrading CentOS 7 to CentOS 8<\/h3>\n\n\n\n<p>We are now ready to upgrade CentOS 7 to CentOS 8, but before we do so, upgrade the system using the newly install dnf package manager<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># dnf upgrade <\/pre>\n\n\n\n<p>Next, install <strong>CentOS 8<\/strong> release package using <strong>dnf<\/strong> as shown below. This will take a while.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf install http:\/\/mirror.centos.org\/centos\/8\/BaseOS\/x86_64\/os\/Packages\/centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm\n# dnf install http:\/\/mirror.centos.org\/centos\/8\/BaseOS\/x86_64\/os\/Packages\/centos-release-8.1-1.1911.0.8.el8.x86_64.rpm\n# dnf install http:\/\/mirror.centos.org\/centos\/8\/BaseOS\/x86_64\/os\/Packages\/centos-gpg-keys-8.1-1.1911.0.8.el8.noarch.rpm\n<\/pre>\n\n\n\n<p>Next, upgrade the <strong>EPEL<\/strong> repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf -y upgrade https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch<\/pre>\n\n\n\n<p>After successfully upgrading the <strong>EPEL<\/strong> repository, remove all the temporary files.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># dnf clean all\n<\/pre>\n\n\n\n<p>Remove the old kernel core for <strong>CentOS 7<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># rpm -e `rpm -q kernel`\n<\/pre>\n\n\n\n<p>Next, be sure to remove conflicting packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># rpm -e --nodeps sysvinit-tools\n<\/pre>\n\n\n\n<p>Thereafter, launch the <strong>CentOS 8<\/strong> system upgrade as shown.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Install the New Kernel Core for CentOS 8<\/h3>\n\n\n\n<p>To install a new kernel for <strong>CentOS 8<\/strong>, run the command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># dnf -y install kernel-core\n<\/pre>\n\n\n\n<p>Finally, install <strong>CentOS 8<\/strong> minimal package.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># dnf -y groupupdate \"Core\" \"Minimal Install\"\n<\/pre>\n\n\n\n<p>Now you can check the version of CentOS installed by running.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cat \/etc\/redhat-release\n<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Install the EPEL Repository To start off, install the EPL repository by running: # yum install epel-release -y Step 2: Install yum-utils Tools After successfully installing EPEL, install yum-utils by running the command below. # yum install yum-utils Thereafter, you need to resolves RPM packages by executing the command. # yum install rpmconf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2851,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[30,1],"tags":[],"class_list":["post-2848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-uncategorized"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Upgrade CentOS 7 to CentOS 8 | 24x7serversupport 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.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Upgrade CentOS 7 to CentOS 8 | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"Step 1: Install the EPEL Repository To start off, install the EPL repository by running: # yum install epel-release -y Step 2: Install yum-utils Tools After successfully installing EPEL, install yum-utils by running the command below. # yum install yum-utils Thereafter, you need to resolves RPM packages by executing the command. # yum install rpmconf [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-06T02:05:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-17T13:59:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"375\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/\",\"name\":\"How to Upgrade CentOS 7 to CentOS 8 | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1\",\"datePublished\":\"2020-03-06T02:05:27+00:00\",\"dateModified\":\"2021-05-17T13:59:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1\",\"width\":825,\"height\":375},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Upgrade CentOS 7 to CentOS 8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Upgrade CentOS 7 to CentOS 8 | 24x7serversupport 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.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/","og_locale":"en_US","og_type":"article","og_title":"How to Upgrade CentOS 7 to CentOS 8 | 24x7serversupport Blog","og_description":"Step 1: Install the EPEL Repository To start off, install the EPL repository by running: # yum install epel-release -y Step 2: Install yum-utils Tools After successfully installing EPEL, install yum-utils by running the command below. # yum install yum-utils Thereafter, you need to resolves RPM packages by executing the command. # yum install rpmconf [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/","og_site_name":"24x7serversupport Blog","article_published_time":"2020-03-06T02:05:27+00:00","article_modified_time":"2021-05-17T13:59:51+00:00","og_image":[{"width":825,"height":375,"url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1","type":"image\/png"}],"author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/","name":"How to Upgrade CentOS 7 to CentOS 8 | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1","datePublished":"2020-03-06T02:05:27+00:00","dateModified":"2021-05-17T13:59:51+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#primaryimage","url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1","width":825,"height":375},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-upgrade-centos-7-to-centos-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Upgrade CentOS 7 to CentOS 8"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/centos8-825x375-1.png?fit=825%2C375&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2848"}],"version-history":[{"count":2,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2848\/revisions"}],"predecessor-version":[{"id":2850,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2848\/revisions\/2850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media\/2851"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}