You could follow Wonder as he was following the AlphaGNU MariaDB upgrade guide. The only difference is he was having to disable the CWP repo before continuing with the process:
cp /etc/my.cnf /etc/my.cnf.bak
systemctl stop mariadb mysql mysqld
systemctl disable mariadb
rpm -e --nodeps $(rpm -qa | grep -i mariadb)
rpm -e --nodeps mysql-common mysql-libs mysql-devel
rpm --nodeps -ev MariaDB-server
rpm -e --nodeps mariadb-server
dnf module disable mariadb -y
yum clean all
nano /etc/yum.repos.d/cwp.repo
Set enabled=0
Save changes, and then:
yum install MariaDB-server MariaDB-client MariaDB-devel MariaDB-shared net-snmp perl-DBD-MySQL -y
Then, very important:
nano /etc/yum.repos.d/cwp.repo
Set enabled=1
Save changes
dnf --refresh update
Didn't take long for that to go sideways:
[root@viking ~]# cp /etc/my.cnf /etc/my.cnf.bak
[root@viking ~]# systemctl stop mariadb mysql mysqld
[root@viking ~]# systemctl disable mariadb
Removed /etc/systemd/system/multi-user.target.wants/mariadb.service.
Removed /etc/systemd/system/mysql.service.
Removed /etc/systemd/system/mysqld.service.
[root@viking ~]# rpm -e --nodeps $(rpm -qa | grep -i mariadb)
[root@viking ~]# rpm -e --nodeps mysql-common mysql-libs mysql-devel
[root@viking ~]# rpm --nodeps -ev MariaDB-server
error: package MariaDB-server is not installed
[root@viking ~]# rpm -e --nodeps mariadb-server
error: package mariadb-server is not installed
[root@viking ~]# dnf module disable mariadb -y
Last metadata expiration check: 3:16:44 ago on Thu 04 Dec 2025 05:24:14 PM CET.
Dependencies resolved.
===========================================================================================================
Package Architecture Version Repository Size
===========================================================================================================
Disabling modules:
mariadb
Transaction Summary
===========================================================================================================
Complete!
[root@viking ~]# yum clean all
67 files removed
[root@viking ~]# nano /etc/yum.repos.d/cwp.repo
[root@viking ~]# yum install MariaDB-server MariaDB-client MariaDB-devel MariaDB-shared net-snmp perl-DBD-MySQL -y
AlmaLinux 8 - BaseOS 28 MB/s | 49 MB 00:01
AlmaLinux 8 - AppStream 16 MB/s | 22 MB 00:01
AlmaLinux 8 - Extras 36 kB/s | 14 kB 00:00
AlmaLinux 8 - PowerTools 10 MB/s | 5.1 MB 00:00
AlmaLinux 8 - PowerTools Source 335 kB/s | 144 kB 00:00
AlmaLinux 8 - PowerTools debuginfo 2.4 MB/s | 930 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 11 MB/s | 14 MB 00:01
nginx repo 1.3 MB/s | 89 kB 00:00
No match for argument: MariaDB-server
No match for argument: MariaDB-client
No match for argument: MariaDB-devel
No match for argument: MariaDB-shared
Package perl-DBD-MySQL-4.046-3.module_el8.6.0+2827+49d66dc3.x86_64 is already installed.
Error: Unable to find a match: MariaDB-server MariaDB-client MariaDB-devel MariaDB-shared
[root@viking ~]#