AlmaLinux 8.6 + Plesk: Updating MariaDB 10.3 to 10.5

Quick guide on how to update MariaDB 10.3 to 10.5 when using AlmaLinux 8.6 with Plesk Obsidian. This is using a clean install of Plesk Obsidian 18.0.46 and is correct at time of publishing.

Stop MariaDB service

service mariadb stop

Remove incompatible gssapi package

dnf remove mariadb-gssapi-server

Edit/create mariadb.repo in /etc/yum.repos.d/ with the following (I use nano but any editor will do)

nano /etc/yum.repos.d/mariadb.repo

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/rhel8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Ctrl + X to save and quit, Y then enter.

Clean cache and install MariaDB

dnf clean all

dnf install MariaDB-server galera-4 MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common

Restart MariaDB

systemctl restart mariadb

Upgrade databases

MYSQL_PWD=cat /etc/psa/.psa.shadow mysql_upgrade -uadmin

Restart MariaDB again

systemctl restart mariadb

Update Plesk MariaDB version

plesk sbin packagemng -sdf

Restore SELinux on /var/lib/mysql/*

restorecon -v /var/lib/mysql/*

You should now have MariaDB 10.5 installed and working replacing 10.3.

Uninstalling IONOS Cloud Backup Agent for Linux

I’ve used the IONOS Cloud Backup option for a while to back up my Plesk VM but having recently purchased a Synology NAS I’ve moved the backup solution to that instead.

Having tried (and failed) to find an article on the IONOS website on how to remove the agent (there’s an article on how to install here), here’s some quick steps after a bit of Googling.

IONOS Cloud Backup is essentially a rebadged Acronis service and the backup agent seems to be the same. After finding this article on the Acronis website I opened a SSH session and checked that the directory path listed was present on my VM which it was.

So uninstalling is just a case of running

sudo /usr/lib/Acronis/BackupAndRecovery/uninstall/uninstall

Obviously after that you may wish to go into the Cloud Backup panel and clean up the old backups etc. so you aren’t charged for the storage.