{"id":18032,"date":"2022-08-21T05:23:11","date_gmt":"2022-08-21T05:23:11","guid":{"rendered":"https:\/\/linuxways.net\/?p=18032"},"modified":"2022-09-05T18:03:11","modified_gmt":"2022-09-05T18:03:11","slug":"upgrade-centos-7-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/upgrade-centos-7-centos-8\/","title":{"rendered":"How To Upgrade from CentOS 7 to CentOS 8"},"content":{"rendered":"<p>Rapidly upgrading technology increases the need for a better operating system that provides regular updates and better optimization. The latest and updated built-in tools and widgets come with a new operating system, which is better than their older versions in almost all aspects.<\/p>\n<p>If you\u2019re looking to upgrade your CentOS 7 to CentOS 8, this article will guide you through upgrading CentOS 7 to CentOS 8.<\/p>\n<h2>How To Upgrade from CentOS 7 to CentOS 8<\/h2>\n<h3>Step 1: Open the Terminal and Execute the Following Command<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/ii.jpg\" alt=\"How To Upgrade from CentOS 7 to CentOS 8\" width=\"820\" height=\"410\" \/><\/p>\n<p>After you hit enter, you will most likely be asked to be a root. So, enter the \u201csu\u201d command, and then you will be asked to enter the password. Enter the password, hit enter, and re-run the command again.<\/p>\n<p><strong>Note: <\/strong>You may not see your password being typed on the screen. However, it is okay once you enter the correct password. Then, hit enter, and you are now root.<\/p>\n<h3><strong>Step 2: Installing the yum-util Tools by Executing the Following Command<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"217\" class=\"wp-image-18045\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-2.png 733w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-2-300x89.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<p>It will automatically download and install all the required packages.<\/p>\n<h3><strong>Step 3: Enter the Following Commands To Resolve RPM Packages <\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"26\" class=\"wp-image-18049\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-3.png 436w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-3-300x18.png 300w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/p>\n<p>Now, the terminal will ask, \u201cIs this ok [y\/N]:\u201d. You will type \u201cy\u201d. Then, hit enter, and it will install and update everything required.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1083\" height=\"581\" class=\"wp-image-18058\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-4.png 1083w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-4-300x161.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-4-1024x549.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-4-768x412.png 768w\" sizes=\"auto, (max-width: 1083px) 100vw, 1083px\" \/><\/p>\n<p>In CentOS, the DNF package is the default package manager, and we will install it using the following command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"161\" class=\"wp-image-18061\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-5.png 732w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-5-300x66.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>Now, we will remove the yum package manager, as it is no longer being used, using the following command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"25\" class=\"wp-image-18064\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-6.png 612w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-6-300x12.png 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/p>\n<p>It will remove it.<\/p>\n<h3><strong>Step 4: Upgrade the System Using DNF Package Manager by Entering the Following Command<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"27\" class=\"wp-image-18066\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-7.png 393w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-7-300x21.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/p>\n<p>Once it is done, we can move forward and execute the following command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1703\" height=\"67\" class=\"wp-image-18069\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-8.png 1703w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-8-300x12.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-8-1024x40.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-8-768x30.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-8-1536x60.png 1536w\" sizes=\"auto, (max-width: 1703px) 100vw, 1703px\" \/><\/p>\n<p>Or, copy-paste this:<\/p>\n<pre>$ dnf install http:\/\/mirror.centos.org\/centos\/8\/BaseOS\/x86_64\/os\/Packages\/{centos-linux-repos-8-2.el8.noarch.rpm,centos-linux-release-8.4-1.2105.el8.noarch.rpm,centos-gpg-keys-8-2.el8.noarch.rpm}\r\n<\/pre>\n<h3><strong>Step 5: Upgrade the EPEL Repository <\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1267\" height=\"28\" class=\"wp-image-18070\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-9.png 1267w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-9-300x7.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-9-1024x23.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-9-768x17.png 768w\" sizes=\"auto, (max-width: 1267px) 100vw, 1267px\" \/><\/p>\n<p>Or, copy-paste this:<\/p>\n<pre>$ dnf -y upgrade https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm\r\n<\/pre>\n<p>Then, execute this command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"21\" class=\"wp-image-18071\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-10.png 348w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-10-300x18.png 300w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/p>\n<p><strong>Step 6: Remove the Old Kernel and Conflicting Packages<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"417\" height=\"25\" class=\"wp-image-18072\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-11.png 417w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-11-300x18.png 300w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/p>\n<p>And<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"507\" height=\"25\" class=\"wp-image-18073\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-12.png 507w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-12-300x15.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-12-501x25.png 501w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/p>\n<p><strong>Step 7: Run Upgrade <\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"857\" height=\"25\" class=\"wp-image-18074\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-13.png 857w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-13-300x9.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-13-768x22.png 768w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/p>\n<p>Or, copy-paste this:<\/p>\n<pre>$ dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync\r\n<\/pre>\n<p>Now, run the following command to install the new kernel:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"18\" class=\"wp-image-18075\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-14.png 473w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-14-300x11.png 300w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/p>\n<p>After that is done, use this command to install CentOS minimal package:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"27\" class=\"wp-image-18076\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-15.png 617w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-15-300x13.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p><strong>Step 8: Check the Current Version Using the Following Command<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"247\" height=\"22\" class=\"wp-image-18077\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-16.png\" \/><\/p>\n<p>This will show you the current version as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"217\" height=\"17\" class=\"wp-image-18078\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18032-17.png\" \/><\/p>\n<p>Now, we have successfully upgraded from CentOS 7 to CentOS 8.<\/p>\n<h2>Conclusion<\/h2>\n<p>If you\u2019re looking for a better and optimized operating system, you have to upgrade. The same goes with CentOS 7. In this article, we went through all the steps required to upgrade to CentOS 8 from CentOS 7, and we hope that this article helped you in your attempt to upgrade. You have successfully upgraded your operating system, and now you will see the difference. Don\u2019t forget to visit our website for more articles like this.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>A step-by-step guide on how to upgrade CentOS 7 to CentOS 8 in order to benefit from a better and more optimized operating system. <\/p>","protected":false},"author":1,"featured_media":18100,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-18032","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=18032"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18032\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/18100"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=18032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=18032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=18032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}