in 2022 how to Upgrade EOL Centos 6.X to Centos 7!

If as I did you waited for too long before thinking it would be a great idea to upgrade your old centos 6.x on your server/home server and now you are facing the EOL of this version...  This post is for you. 

Unfortunately, from my experience, the upgrade was unsuccessfull, maybe it will help you. In fact, after I upgraded to the latest version 6, some software started to bug (webmin, firewall changed it's settings, lost linux raid...)

Anyway, I tried a lot to find a way to upgrade, so, if it can help you, read the following.

Step 1: change repository mirror location:

curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo

source: https://www.getpagespeed.com/server-setup/how-to-fix-yum-after-centos-6-went-eol 

  Step 2: Follow the steps here : https://www.linuxgurus.in/upgrade-centos6-to-centos7/

For me, the preupg step did not worked well. The openscap version was not the right one (on my computer, the yum install updated it to a incompatible version. I had to :

yum erase openscap
yum install openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm

After this manipulation, preupg worked well. Unfortunately, I had a few warnings telling me it was very dangerous to upgrade, so, I will not try to do the upgrade, I wish you will have more luck than me!

Regarding the end of centos, since I really like centos and don't want to switch to stream for stability, I chose to go with with Almalinux. Unfortunately, I am getting a kernel panic on version 9. The version 8.6 is working great here.  

Also, I did the move toward proxmox to virtualize my server. It is working very well, and it is quite easy to use. 

Have fun with linux!


Comments

Popular posts from this blog

Proxmox can't shutdown VM [solved] (can't lock file '/run/lock/qemu-server/lock-*.conf)

Latest OpenWRT (23.05.0) on asus rt-n16 (bcrms driver)

Subversion (svn) install on RHEL 9 (alma linux), connection using apache https