Upgrade From CentOS 7 To CentOS 8

Home » CentOS » Upgrade From CentOS 7 To CentOS 8
CentOS 5 Comments

I don’t understand how I can upgrade my CentOS 7.

cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)

I followed the directions found on the web (by installing dnf and so on), but when I tried to install CentOS-release I get

dnf upgrade -y http://mirror.CentOS.org/CentOS/8/BaseOS/x86_64/os/Packages/CentOS-release-8.1-1.1911.0.9.el8.x86_64.rpm Last metadata expiration check: 0:19:05 ago on Wed 08 Apr 2020 04:50:14
PM CEST. CentOS-release-8.1-1.1911.0.9.el8.x86_64.rpm 184 kB/s |  21 kB     00:00
Dependencies resolved.

 Problem: cannot install the best update candidate for package CentOS-release-7-7.1908.0.el7.CentOS.x86_64
  – nothing provides CentOS-gpg-keys = 8.1-1.1911.0.9.el8 needed by CentOS-release-8.1-1.1911.0.9.el8.x86_64
  – nothing provides CentOS-repos = 8.1-1.1911.0.9.el8 needed by CentOS-release-8.1-1.1911.0.9.el8.x86_64
=================================================================================================================================
 Package                         Arch Version                             Repository Size
=================================================================================================================================
Skipping packages with broken dependencies:
 CentOS-release                  x86_64
8.1-1.1911.0.9.el8                  @commandline 21 k

Transaction Summary
=================================================================================================================================
Skip  1 Package

Nothing to do. Complete!

Does anyone know how to upgrade?

Thanks

Stefano

5 thoughts on - Upgrade From CentOS 7 To CentOS 8

  • Am 08.04.2020 um 17:50 schrieb Stefano Simonucci:

    There is no supported way to run an inplace upgrade. Backup your data and run a fresh install.

    Alexander

  • Unfortunately, there are a lot of web sites out there with bad information.

    There’s no support for updating from C7 to C8. It’s likely to result in a broken system even if you are careful and know what you’re doing.

  • I would also keep in mind, depending upon your use of C7, that a lot of packages have not yet been created for CentOS-8. I had to build several from srpms (some from older Fedora ones, like F28 and F30) and some from C7 srpms. (By the way, if anyone made an rpm for C8 for weechat, please send me a direct email, I’ve been unable to get a version that works with weechat’s python support).

    Anyway, figure out your essential programs and make sure they’re available in CentOS-8. You will almost certainly want to enable the EPEL-testing repo as well as a few others (such as rpmfusion if you’re using any multimedia stuff).

    If you’re using it as a basic server without X, you’re probably alright.

  • OK. I understand. Unfortunately the server has been assigned to me remotely and I cannot physically reinstall CentOS 8.

    Thank you very much.

    Stefano

  • Huh? I did remote installs all the time at my last $job. It’s easiest if it’s either a VM or a physical server with IPMI