FREE TRIAL

Deploy a Free VPS Server Worldwide. No Credit Card Required.

Start Free Trial
  • +357 2425 0808
  • Login
  • English

Home

Blog

How to Upgrade CentOS 7 to CentOS 8...

How to Upgrade CentOS 7 to CentOS 8

How to Upgrade CentOS 7 to CentOS 8

NetShop ISP

NetShop ISP · Blog Author

Sep 15, 2020 · Tutorials

Updated on January 21, 2021

In this article, you will learn how to upgrade your Linux dedicated or virtual server from CentOS 7 to CentOS 8.

Step 1: Install the EPEL Repository

# yum install epel-release -y

Step 2: Install yum-utils Tools

# yum install yum-utils

After the above step, you now need to resolve the RPM packages by executing the commands:

# yum install rpmconf
# rpmconf -a

Next, perform a clean up of all the packages you don’t require with the following commands:

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

Step 3: Install the dnf in CentOS 7

DNF is the default package manager in CentOS 8. Install it by executing the following command:

# yum install dnf 

Now remove the yum package manager:

# dnf -y remove yum yum-metadata-parser
# rm -Rf /etc/yum

Step 4: Upgrade CentOS 7 to CentOS 8

First upgrade the dnf package manager:

# dnf upgrade

Next, install CentOS 8 release package using dnf as shown below. This will take a while.

# dnf install http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-repos-8.2-2.2004.0.1.el8.x86_64.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.2-2.2004.0.1.el8.x86_64.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-gpg-keys-8.2-2.2004.0.1.el8.noarch.rpm

Next, upgrade the EPEL repository as follows:

# dnf -y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Now, remove all the temporary files by executing the following command:

# dnf clean all

Remove the old CentOS 7 kernel core

# rpm -e `rpm -q kernel`

Then you need to remove all conflicting packages:

# rpm -e --nodeps sysvinit-tools

Thereafter, launch the CentOS 8 system upgrade as shown below:

# dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync

Step 5: Install the New Kernel Core for CentOS 8

# dnf -y install kernel-core

You are now ready to install CentOS 8 minimal package:

# dnf -y groupupdate "Core" "Minimal Install"

The CentOS 7 to CentOS 8 upgrade task has been completed! You may issue the following command to verify:

# cat /etc/redhat-release

If you are a NetShop ISP Fully Managed Hosting Customer, you may simply drop an email to the Support team to upgrade your CentOS 7 server to CentOS 8. Alternatively, should you wish to perform the upgrade on your own feel free to use this article with the steps described above.

The procedure has been tested at NS Labs for the purposes of drafting this Linux tutorial.

How to Order a Cheap Linux CentOS Server

You can deploy your next Linux CentOS Server in 60 seconds by choosing any of our VPS Hosting plans in Cyprus, Malta, UK, Amsterdam (Netherlands), Los Angeles (United States) and Singapore.

If you prefer dedicated resources then we strongly recommend that you order a cheap dedicated server, at the location of your preference from this page.

Categories

Backup
6
Business Continuity
4
Cloud Hosting
10
Colocation
4
Company Updates
1
Cryptocurrencies
1
Data Centers
12
Dedicated Servers
4
Disaster Recovery
3
Forex
25
Gaming
1
iGaming
33
Industry News
32
Interviews
10
Joomla
9
Magento
5
Managed Services
1
Operating Systems
1
Press Releases
65
Product News
6
Resellers
1
Security
25
Software & Apps
1
Streaming
1
Tech Startups
12
Tutorials
61
Uncategorized
389
Vps Hosting
11
Web Design & Development
3
Web Hosting
44
Webinars
1
Wordpress
14

Free VPS Trial

No Credit Card Required.

Recent Posts

How To Enable Remote Connections to SQL Server

How To Enable Remote Connections to SQL Server

27 March, 2023

How To Fix Error Failed to download metadata for repo in CentOS 8

How To Fix Error Failed to download metadata for repo in CentOS 8

23 March, 2023

How can Forex Brokers be Protected from DDoS Attacks

How can Forex Brokers be Protected from DDoS Attacks

20 March, 2023

NetShop ISP Bronze Sponsors for the University of Cyprus at Harvard WorldMUN 2023

NetShop ISP Bronze Sponsors for the University of Cyprus at Harvard WorldMUN 2023

15 March, 2023

Top 5 Cloud Computing Trends in 2023

Top 5 Cloud Computing Trends in 2023

13 March, 2023

#letushostyou

Award Winning Hosting Provider established in 2004.

Best iGaming Service ProviderISO Certified

120 Faneromenis Avenue, Imperial Tower, 2nd Floor, Larnaca 6031, Cyprus

Products

Bare Metal Servers

Customized Servers

Virtual / Cloud Servers

Forex VPS

Storage VPS

cPanel Web Hosting

Reseller Web Hosting

Colocation

Addons

Premium DNS

Email Hosting

Cloud Backup

DDoS Protection

Licenses

SSL Certificates

Domain Names

Premium SLAs

About Us

Data Center Locations

Looking Glass

Our Company

Contact Us

Careers in Cyprus

Become a Partner

Awards

Certifications

© 2023 S.S. NetShop Internet Services Ltd. All rights reserved.  Terms & Conditions  |  Privacy Policy
CY Reg. Number: HE 217340 | EU VAT Number: CY10217340J

Visa
Mastercard
PayPal
Bitcoin
Tether
Ethereum
Litecoin
Wise
Revolut
Wire Transfer