Centos 7 to 8 update.

General support questions
Post Reply
helloha
Posts: 4
Joined: 2020/09/12 18:06:22

Centos 7 to 8 update.

Post by helloha » 2020/09/12 18:13:09

Hello all,

Newbie question,

I want to upgrade from Centos 7 to 8. Can anyone tell me if I need to disable repos from centos7 in order to do so? Right now I get error messages like the ones below.

Code: Select all

file /usr/lib/python2.7/site-packages/six.py from install of python2-six-1.11.0-5.module_el8.2.0+381+9a5b3c3b.noarch conflicts with file from package python-six-1.9.0-2.el7.noarch
This is my list of repositories.

Code: Select all

repo id                                       repo name                                                                            status
AppStream                                     CentOS-8 - AppStream                                                                 4935
BaseOS                                        CentOS-8 - Base                                                                      1673
centos-sclo-rh                                CentOS-7 - SCLo rh                                                                   6943
centos-sclo-sclo                              CentOS-7 - SCLo sclo                                                                  802
epel                                          Extra Packages for Enterprise Linux 8 - x86_64                                       6431
epel-modular                                  Extra Packages for Enterprise Linux Modular 8 - x86_64                                  0
extras                                        CentOS-8 - Extras                                                                      26
pgdg-common                                   PostgreSQL common RPMs for RHEL/CentOS 8 - x86_64                                     320
pgdg10                                        PostgreSQL 10 for RHEL/CentOS 8 - x86_64                                              384
pgdg11                                        PostgreSQL 11 for RHEL/CentOS 8 - x86_64                                              422
pgdg12                                        PostgreSQL 12 for RHEL/CentOS 8 - x86_64                                              257
pgdg95                                        PostgreSQL 9.5 for RHEL/CentOS 8 - x86_64                                             251
pgdg96                                        PostgreSQL 9.6 for RHEL/CentOS 8 - x86_64                                             370
teamviewer                                    TeamViewer - x86_64                                                                   105
yarn                                          Yarn Repository                                                                        51
It' is the first time I do a complete version upgrade. I can find a few guides online but I run into this issue.

https://www.howtoforge.com/how-to-upgra ... core-to-8/
https://www.tecmint.com/upgrade-centos-7-to-centos-8/

THX for any help!

User avatar
TrevorH
Forum Moderator
Posts: 29435
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 to 8 update.

Post by TrevorH » 2020/09/12 18:29:16

There is no upgrade from one major version to another. Back up your data and settings, reinstall the system, reinstall your apps, restore your data.

There are "guides" on the internet that allege they can upgrade but most of them are broken or untested. Do not use them.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

helloha
Posts: 4
Joined: 2020/09/12 18:06:22

Re: Centos 7 to 8 update.

Post by helloha » 2020/09/12 20:07:52

Ok then I'll just hold off, don't need the work of migrating. So I assume I remove all repos refering to CentOs8? Because whenever I update it wil refer to them as well?

Regards,
Karel.

User avatar
TrevorH
Forum Moderator
Posts: 29435
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 to 8 update.

Post by TrevorH » 2020/09/12 23:39:02

Yes, you need to reverse the steps you have taken so far.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

helloha
Posts: 4
Joined: 2020/09/12 18:06:22

Re: Centos 7 to 8 update.

Post by helloha » 2020/09/13 07:35:45

Just wondering if I already messed things up and installed 8 partly or something...

Code: Select all

[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

[code]CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Code: Select all

[root@localhost ~]# uname -r
3.10.0-1127.19.1.el7.x86_64

User avatar
KernelOops
Posts: 321
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: Centos 7 to 8 update.

Post by KernelOops » 2020/09/13 08:54:57

Your migration just came earlier than expected :D
--
I love my computer - all my friends live there.
--

helloha
Posts: 4
Joined: 2020/09/12 18:06:22

Re: Centos 7 to 8 update.

Post by helloha » 2020/09/13 10:30:33

Yes but the kernel is still on v7?

User avatar
jlehtone
Posts: 3021
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Centos 7 to 8 update.

Post by jlehtone » 2020/09/13 11:00:32

You have either not installed kernel from el8 repo or haven't rebooted to it yet.

The /etc/os-release comes in some package. See:

Code: Select all

rpm -qf /etc/os-release

yum provides /etc/os-release
You can/should undo those changes by restoring the corresponding el7 packages.

User avatar
TrevorH
Forum Moderator
Posts: 29435
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 to 8 update.

Post by TrevorH » 2020/09/13 16:46:34

Given what you've posted so far I think I'd recommend breaking out your backups and going back to the version of the system you had before you started.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”