With CentOS 7 end of life a half year away, I should choose something to move to. I’ve had a CentOS server here for eight years, and haven’t paid much attention to the alternatives. Anyone here have experience migrating yours from CentOS to Rocky, Debian, Ubuntu, AlmaLinux, or something else? How did you decide? How was the migration process?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
[My comments get lost or hidden by this system so I’ll add this as an “answer” but it’s really a continuation of the question]
Thanks for the answers so far! Those four - AlmaLinux, Rocky, Debian, and Ubuntu - are the four I was mainly considering, but it’s still unclear how to choose between them. I think there are really two separate choices to make:
2a. If CentOS-like, how to make the choice between Rocky and AlmaLinux?
2b. If Debian-like, how to select between Debian and Ubuntu?
Since the context of this question is a DigitalOcean droplet, that means a headless cloud VM instance. Window managers and related UI considerations, device driver issues, hardware compatibility, etc., are not relevant here, so it doesn’t matter whether these Linuxes have significant differences on those grounds for the purpose of this question.
Obviously for someone who has a strong preference already between CentOS and Debian-like Linuxes, choice #1 is easy. If I wanted to stick with something close to CentOS, then that would be an easy choice. But I actually don’t care one way or the other. Although the reason I need to pick a new OS is that CentOS going away means I can’t just keep what I have now, that does not mean I want to choose something just like it. I’m happy to use a different Linux.
So, can anyone say more about how to actually make those choices above, without regard to any pre-existing preference for or against CentOS or Debian? Why would someone pick a CentOS-like or Debian-like Linux vs. the other? What are the reasons to choose Ubuntu over Debian or vice versa? Rocky over AlmaLinux or vice versa? Not just positive statements about each one, but the actual contrasts, and the drawbacks of each choice.
Hi there,
This is a great question! Indeed, switching from CentOS, especially considering its upcoming end-of-life, is an important decision that depends on various factors including your specific use case, personal preferences, and the specific needs of the applications you’re running.
Besides what has been mentioned already for AlmaLinux, here are a few more details to consider in case that other people come across this question in the near future:
1. Rocky Linux and AlmaLinux
leapp
. Always remember to back up your Droplet before such a major upgrade.2. Debian
apt
with .deb packages compared to CentOSyum
anddnf
and .rpm packages.3. Ubuntu
Besides that, there are a few more things to consider:
Make sure to assess the compatibility of your current applications with the new OS. This includes checking for available software packages and required libraries.
An important thing to consider is the size of the community and the availability of support. Larger communities often mean better support and more readily available solutions to problems. This is why I quite like both Debian and Ubuntu.
If you or your team are already familiar with a particular Linux distribution, this could reduce the learning curve and migration effort which is very important for all production use-cases. Though for me it is always fun to play around with a new OS.
Look for distributions that offer long-term support, especially if you prefer stability over having the latest features.
Besides all that, always start with a detailed plan and backup your existing data and configurations in case that anything goes wrong. On that note, you could even set up a test environment to trial the migration process and iron out any issues before migrating your production system.
Hope that this helps!
Bobby
Heya @cosdigitalocean,
I’ll recommend using AlmaLinux, it is considered the natural successor of CentOS with it being like 95% similar to CentOs, it’s still RedHat so that will help as well. This is a strong choice if you want minimal disruption and a similar environment to what you’re used to with CentOS. Migration should be relatively straightforward because of the binary compatibility.
As for the migration there is a tool called:
Which in theory should help you to upgrade your Droplet from CentOS to Almalinux but to be honest I’ve not had the chance to try it out but I hear it does work more often than not.
If it doesn’t work, you’ll just need to migrate the old way, create a new Droplet, and migrate the data you need.
Additionally, don’t forget to create a Backup/Snapshot before you begin as these operations often have issues along the way:
https://docs.digitalocean.com/products/images/snapshots/
Snapshots are on-demand disk images of DigitalOcean Droplets and volumes saved to your account. Use them to create new Droplets and volumes with the same contents.