The way to migrate from CentOS 8 to AlmaLinux (conversion)

Get real time updates directly on you device, subscribe now.

I already wrote about migrating from CentOS 8 to CentOS Stream. I even have a information about migrating from CentOS 8 to Rocky Linux. At the moment, I’m engaged on one other aspect undertaking with my associate, and I wished to check out AlmaLinux. Therefore, this fast put up will checklist steps to transform present VM or naked steel server from CentOS 8 to AlmaLinux 8. The server presently acts as API for cellular apps, together with PostgreSQL, Redis, Python+Django, Apache internet server, and SELinux and firewalld.

WARNING! Make a backup earlier than you begin upgrading and the conversion process. I’m an skilled Linux person, developer and sysadmin. Nonetheless, there is no such thing as a substitute for backups. Preserve verified backups. Don’t proceed additional with out backups. The nixCraft shouldn’t be accountable for information loss.

In case you are doing this over an SSH session, I like to recommend working instructions over GNU/display screen or Tmux terminal multiplexer.

Migrating from CentOS 8 to AlmaLinux (conversion)

The process emigrate CentOS 8 Linux steady to AlmaLinux is as follows

Log in as the foundation person:
sudo -i
Apply pending updates to CentOS 8 by working the dnf command/yum command:
dnf replace

Apply pending updates earlier than migration begins

Reboot the Linux field when new kernel updates are put in:
After reboot, it’s worthwhile to obtain the script utilizing the wget or curl command, sort:
# learn the script #
Subsequent arrange executable permission utilizing the chmod command, run:
chmod -v +x

Downloading script

Lastly, migrate CentOS to AlmaLinux by typing the

AlmaLinux migration device in motion

The improve and migration will take their very own candy time. All of it relies upon upon your server {hardware} specification and the Web velocity. So wait and look ahead to errors on the display screen. In the long run, you must see a affirmation message as follows on display screen:

Run dnf distro-sync -y OK
Restoring of options is finished OK
Producing grub configuration file …
All Safe Boot associated packages which had been launched by not AlmaLinux are reinstalledOK
Migration to AlmaLinux is accomplished

Reboot the Linux field hosted at AWS or Linode:
shutdown -r now
Connection to three.1x.2xx.2xx closed by distant host.
Lastly, confirm the AlmaLinux model, run:cat /and so forth/redhat-release
## OR ##
cat /and so forth/os-release

CentOS to Almalinux migration efficiently executed

Additionally, be sure that all companies resembling PGSQL, Apache and others are working utilizing the ps command or ss command:
ss -tulpn | extra
ss -tulpn | grep “:80”
# Confirm logs utilizing the tail command and dmesg command+egrep command #
tail -f /var/log/httpd/app_name_goes_here
dmesg | egrep -i ‘error|essential|warn’

Video tutorial

Patreon supporters solely guides 🤓

No adverts and monitoring
In-depth guides for builders and sysadmins at Opensourceflare✨
Be a part of my Patreon to help impartial content material creators and begin studying newest guides:
Be a part of Patreon

Summing up

At the moment, I’m utilizing CentOS 8 Steam, Rocky Linux and Alma Linux. I wished to review how three main CentOS 8 options work in manufacturing, particularly when offering updates. The admin half and instructions are the identical on all three distros besides CentOS 8 Stream ABI/API, however I’m not involved about that proper now.

And that’s all of us. It was easy emigrate from CentOS 8 Linux to AlmaLinux 8. Do test the AlmaLinux undertaking web site and Github repo.


Comments are closed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More