How to Upgrade Centos 7 to 8

How to Upgrade Centos 7 to 8


Linux Articles / All 14 Views comments

CentOS Eight has been launched on Sep 23rd, 2019 ISO's can be found on the official web site and could possibly be put in in some ways, sadly, the minimal model just isn't out there but (or in any respect) as a SysAdmin it was my favourite construct about 800 Mb in comparison with 6 Go, on this tutorial I'll present you easy methods to improve from Centos 7 to Centos Eight

Please think about that this isn't an official improve so it isn't appropriate for a manufacturing surroundings.

CentOS 7 to eight Improve

Obtain and set up EPEL repository:

yum -y set up

Set up yum-utils:

yum -y set up rpmconf yum-utils

Resolving rpm packages:

rpmconf -a


Result of rpmconf command

Maintain Default.

Cleanup packages we do not want.

package-cleanup --leaves
package-cleanup --orphans

end result:

Package cleanup

Set up an RPM-based software program DNF package deal supervisor :

yum -y set up dnf

Eradicating yum package deal supervisor:

dnf -y take away yum yum-metadata-parser
rm -Rf /and so on/yum

Updating a system with DNF:

sudo dnf -y improve

Putting in the brand new model:

dnf -y improve

Upgrading EPEL repository:

dnf -y improve

Cleansing full momentary information stored on the repository

dnf clear all

eradicating kernels

rpm -e `rpm -q kernel`

Eradicating conflicting

rpm -e --nodeps sysvinit-tools

Now we launch the improve

dnf -y --releasever=Eight --allowerasing --setopt=deltarpm=false distro-sync

Processing new configuration:

rpmconf -a

Affirm that new kernel-core is correctly put in:

rpm -e kernel-core
dnf -y set up kernel-core

Affirm that grub is up to date and in the correct place

ROOTDEV=`ls /dev/*da|head -1`;
echo "Detected root as $ROOTDEV..."
grub2-install $ROOTDEV

Set up Minimal package deal:

dnf -y groupupdate "Core" "Minimal Set up"

Verify Centos model:

cat /and so forth/centos-release

CentOS Upgraded successfully

CentOS Boot screen