Author Topic: update mariadb in almalinux 8  (Read 98 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
update mariadb in almalinux 8
« on: September 30, 2025, 07:33:27 PM »
I try to follow these steps: https://starburst.help/control-web-panel-cwp/control-web-panel-cwp-admin-tutorials/upgrade-mariadb-10-x-to-10-11-in-cwp-on-almalinux-8/

However in step 4

Code: [Select]
dnf install MariaDB-server MariaDB-client net-snmp perl-DBD-MySQL -y
...
Error:
 Problem: package MariaDB-server-10.6.23-1.el8.x86_64 from mariadb requires MariaDB-client >= 10.6.1, but none of the providers can be installed
  - cannot install both MariaDB-client-10.6.21-1.el8.x86_64 from mariadb and MariaDB-client-10.5.29-1.el8.x86_64 from cwp
  - cannot install both MariaDB-client-10.6.22-1.el8.x86_64 from mariadb and MariaDB-client-10.5.29-1.el8.x86_64 from cwp
  - cannot install both MariaDB-client-10.6.23-1.el8.x86_64 from mariadb and MariaDB-client-10.5.29-1.el8.x86_64 from cwp
  - cannot install the best candidate for the job
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

my repository:

Code: [Select]
[root@s3 src]# cat /etc/yum.repos.d/mariadb.repo
# MariaDB 10.11 RedHatEnterpriseLinux repository list - created 2025-09-30 19:31 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch
baseurl = https://mirrors.up.pt/pub/mariadb/yum/10.11/rhel/$releasever/$basearch
module_hotfixes = 1
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://mirrors.up.pt/pub/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1

could help me?

Offline
*****
Re: update mariadb in almalinux 8
« Reply #1 on: September 30, 2025, 07:42:10 PM »
Another set of directions from Sandeep (a CWP developer):
https://www.alphagnu.com/topic/23-upgrade-mariadb-1011-in-cwp-centos-7-centos-8-stream-almalinux-78-rockylinux-78/

Did you miss the step of removing your existing MariaDB install (it will preserve your databases) before attempting the upgrade?

Offline
*
Re: update mariadb in almalinux 8
« Reply #2 on: September 30, 2025, 08:18:35 PM »
fixed

I add flag: --nobest

Code: [Select]
yum install MariaDB-server MariaDB-client MariaDB-devel MariaDB-shared net-snmp perl-DBD-MySQL -y --nobest
and mariadb was installed correctly

thanks