LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2016, 08:58 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
Upgrading from CentOS6 to CentOS7


Is there a way to do so without starting over?

There is a tool located at https://wiki.centos.org/TipsAndTricks/CentOSUpgradeTool, but it includes the following note:

DO NOT USE this tool. Warning: use of this tool is currently BROKEN as several system-critical packages are of a higher version number in CentOS 6.7 than they are in CentOS 7 so those do not get upgraded correctly. This renders yum and several other system tools non-functional.

If I should just do a clean install, any recommended steps? Not asking how to install CentOS7, but just a general plan. I've never done this, but on Windows machines I always:
  1. Make a list of all programs to reinstall.
  2. Copy My Documents
  3. Copy my Outlook crap
  4. Etc.

So for *nix, I guess I would:
  1. Make a copy of /home and /root
  2. Copy /etc/?
  3. Get a list of programs installed (how?)
  4. What else?

Also, maybe making some sort of backup before doing so makes sense.

Hopefully, there is a good way to upgrade from CentOS6 to CentOS7, but if not...
 
Old 05-16-2016, 09:09 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
On *nix,
I'd also dump crons and here's how to list installed packages.

Have fun!

Last edited by Habitual; 05-16-2016 at 09:10 AM.
 
Old 05-16-2016, 09:09 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Here is a guide to upgrade CentOS 6 to CentOS 7.

https://www.vultr.com/docs/how-to-up...-6-to-centos-7

But no upgrade is smooth. I would suggest you to take backup before doing anything.

I have upgraded my centOS too but I upgraded using bootable pendrive and install it from the scratch.
There is a daily back cron on my Centos which takes back up in Network hard Drive. So it was not difficult at all
 
Old 05-16-2016, 09:31 AM   #4
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
... and here's how to list installed packages.

Have fun!
Will this also include files uploaded vi yum? What about programs I compiled?
 
Old 05-16-2016, 09:33 AM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eklavya View Post
Here is a guide to upgrade CentOS 6 to CentOS 7.
Thanks! I will check it out, but not for a few days.
 
Old 05-16-2016, 09:49 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by NotionCommotion View Post
Will this also include files uploaded vi yum? What about programs I compiled?
Yes, to yum is all I know.
 
Old 05-16-2016, 10:36 AM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
I've never successfully upgraded an Linux OS.

I would recommend to backup your data and rip and and replace.
 
Old 05-16-2016, 10:46 AM   #8
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JockVSJock View Post
I've never successfully upgraded an Linux OS.

I would recommend to backup your data and rip and and replace.
That is probably what I will end up doing. If nothing else, a good excuse to clean everything up.
 
Old 05-16-2016, 11:42 AM   #9
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by NotionCommotion View Post
That is probably what I will end up doing. If nothing else, a good excuse to clean everything up.
Let me add it has been sometime since I've tried to do upgrades with the Linux OS. 100% of the time, it didn't not work (Knoppix and Red Hat), so I did a rip and replace. That was about 10 years ago.

I'm sure things change and maybe it isn't as error-prone as it was in the past, however that has been my experience.

If you have the free time, then go for it.
 
Old 05-16-2016, 11:47 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I've never had much luck upgrading major-to-major versions using CentOS.
 
Old 05-16-2016, 12:55 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Habitual View Post
I've never had much luck upgrading major-to-major versions using CentOS.
Diito-
I always performed fresh install's:-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CentOS6 to CentOS7 - How To? etpoole60 Linux - Software 2 05-04-2016 07:48 PM
[SOLVED] CentOS6 to CentOS7 Ethernet Definition Question etpoole60 Linux - Networking 8 05-04-2016 04:17 PM
How to install Centos7 manh12a3 Linux - Desktop 3 12-10-2015 01:29 AM
[SOLVED] Centos7 slow boot Vanx Linux - Networking 3 08-18-2015 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration