Upgrade from 6.10 to 7.6

General support questions
Post Reply
User avatar
ben_tvpp
Posts: 62
Joined: 2018/12/04 13:28:51

Upgrade from 6.10 to 7.6

Post by ben_tvpp » 2019/02/28 23:12:30

Our production server is now at 7.6 and our backup server is 6.10. Been doing a little digging for how to do an in-place upgrade and would like some advice. Ime from a Debian background so while I have a good understanding of Linux I am not overly familiar with Redhat/CentOS.

Basically, it looks like I use preupg and it seems using any non-standard repositories is a bad Idea. Currently, I have

Code: Select all

repo id                                        repo name                                                                         status
Webmin                                         Webmin Distribution Neutral                                                          126
base                                           CentOS-6 - Base                                                                    6,713
centos-sclo-rh                                 CentOS-6 - SCLo rh                                                                 2,986
centos-sclo-sclo                               CentOS-6 - SCLo sclo                                                                 409
epel                                           Extra Packages for Enterprise Linux 6 - x86_64                                    12,506
extras                                         CentOS-6 - Extras                                                                     43
mysql-connectors-community                     MySQL Connectors Community                                                            83
mysql-tools-community                          MySQL Tools Community                                                                 74
mysql57-community                              MySQL 5.7 Community Server                                                           309
remi-php71                                     Remi's PHP 7.1 RPM repository for Enterprise Linux 6 - x86_64                        380
remi-safe                                      Safe Remi's RPM repository for Enterprise Linux 6 - x86_64                         2,797
updates                                        CentOS-6 - Updates                                                                   359
virtualmin                                     RHEL/CentOS 6 - x86_64 - Virtualmin                                                   26
virtualmin-universal                           Virtualmin Distribution Neutral Packages                                              46
So should I remove or disable these first? How best to do this?

Next, how do I get preupg.

To do the upgrade it seems I must do

$ sudo /usr/bin/redhat-upgrade-tool-cli --network 7 --instrepo=http://mirror.centos.org/centos/7/os/x86_64

But again it seems I need to get it from somewhere?

Help with these and general advice would be much appreciated,
Ben

User avatar
ben_tvpp
Posts: 62
Joined: 2018/12/04 13:28:51

Re: Upgrade from 6.10 to 7.6

Post by ben_tvpp » 2019/02/28 23:25:33

OK, I have found https://www.itzgeek.com/how-tos/linux/c ... tos-7.html which tells me where to get the upgrade too from.

Also, what does preupg actually do. I thought it was a pre-installation test so run it to see if it looked like the upgrade would work but from the output, it seems it is a lot more than this. My running it have I committed to now running the upgrade?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgrade from 6.10 to 7.6

Post by TrevorH » 2019/02/28 23:38:57

Do not use it. It will break your system. That is why it is no longer available. The "upgrade" route from 6 to 7 is to reinstall.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
ben_tvpp
Posts: 62
Joined: 2018/12/04 13:28:51

Re: Upgrade from 6.10 to 7.6

Post by ben_tvpp » 2019/02/28 23:48:58

Pants, I run preupg and it seems to fo hung at

065/096 ...running (Binary rebuilds)

Shame people who have written guides have not updated them mentioned this.

Post Reply