{"id":1326,"date":"2021-07-26T20:47:36","date_gmt":"2021-07-26T13:47:36","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=1326"},"modified":"2021-07-26T20:48:25","modified_gmt":"2021-07-26T13:48:25","slug":"upgrading-centos-7-to-centos-8","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2021\/07\/26\/upgrading-centos-7-to-centos-8.html","title":{"rendered":"Upgrading CentOS 7 to CentOS 8"},"content":{"rendered":"<p>The steps described herein do not depict the official upgrade and this should not be applied to a production server yet.<\/p>\n<p><strong>PRE TASKS<\/strong><\/p>\n<p><strong>Step 1: Install the EPEL Repository<\/strong><br \/>\ninstall the EPL repository by running:<\/p>\n<blockquote><p># yum install epel-release -y<\/p><\/blockquote>\n<p><strong>Step 2: Install yum-utils Tools<\/strong><br \/>\nAfter successfully installing EPEL, install yum-utils by running the command below:<\/p>\n<blockquote><p># yum install yum-utils<\/p><\/blockquote>\n<p>Thereafter, you need to resolves RPM packages by executing the command.<\/p>\n<blockquote><p># yum install rpmconf<br \/>\n# rpmconf -a<\/p><\/blockquote>\n<p>Next, perform a clean-up of all the packages you don\u2019t require.<\/p>\n<blockquote><p># package-cleanup &#8211;leaves<br \/>\n# package-cleanup &#8211;orphans<\/p><\/blockquote>\n<p><strong>INSTALL PRE-UPGRADE TOOL<\/strong><br \/>\n<!--more--><\/p>\n<p><strong>Step 3: Install the dnf in CentOS 7<\/strong><br \/>\nNext step is installing dnf package manager which is the default package manager for CentOS 8<\/p>\n<blockquote><p># yum install dnf<\/p><\/blockquote>\n<p>Then, you need to remove the yum package manager using the command.<\/p>\n<blockquote><p># dnf -y remove yum yum-metadata-parser<br \/>\n# rm -Rf \/etc\/yum<\/p><\/blockquote>\n<p><strong>CENTOS UPGRADE<\/strong><\/p>\n<p><strong>Step 4: Upgrading CentOS 7 to CentOS 8<\/strong><br \/>\nWe 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<blockquote><p># dnf upgrade<\/p><\/blockquote>\n<p>Next, install CentOS 8 release package using dnf as shown below. This will take a while.<\/p>\n<blockquote><p># 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}<\/p><\/blockquote>\n<p>Next, upgrade the EPEL repository.<\/p>\n<blockquote><p># dnf -y upgrade https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm<\/p><\/blockquote>\n<p>After successfully upgrading the EPEL repository, remove all the temporary files.<\/p>\n<blockquote><p># dnf clean all<\/p><\/blockquote>\n<p>Remove the old kernel core for CentOS 7.<\/p>\n<blockquote><p># rpm -e `rpm -q kernel`<\/p><\/blockquote>\n<p>Be sure to remove conflicting packages.<\/p>\n<blockquote><p># rpm -e &#8211;nodeps sysvinit-tools<\/p><\/blockquote>\n<p>Thereafter, launch the CentOS 8 system upgrade as shown.<\/p>\n<blockquote><p># dnf -y &#8211;releasever=8 &#8211;allowerasing &#8211;setopt=deltarpm=false distro-sync<\/p><\/blockquote>\n<p><strong>INSTALL NEW KERNEL<\/strong><\/p>\n<p><strong>Step 5: Install the New Kernel Core for CentOS 8<\/strong><\/p>\n<p>To install a new kernel for CentOS 8, run the command.<\/p>\n<blockquote><p># dnf -y install kernel-core<\/p><\/blockquote>\n<p>Finally, install CentOS 8 minimal package.<\/p>\n<blockquote><p># dnf -y groupupdate &#8220;Core&#8221; &#8220;Minimal Install&#8221;<\/p><\/blockquote>\n<p>Now you can check the version of CentOS installed by running.<\/p>\n<blockquote><p># cat \/etc\/redhat-release<\/p><\/blockquote>\n<p><strong>Disclaimer : Create a recent backup of the system. This is an unofficial , unsupported procedure !<\/strong><\/p>\n<p>source: https:\/\/www.tecmint.com\/upgrade-centos-7-to-centos-8\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The steps described herein do not depict the official upgrade and this should not be applied to a production server yet. PRE TASKS Step 1: Install the EPEL Repository 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\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2021\/07\/26\/upgrading-centos-7-to-centos-8.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1326","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=1326"}],"version-history":[{"count":2,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1326\/revisions"}],"predecessor-version":[{"id":1328,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1326\/revisions\/1328"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=1326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=1326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}