Mariadb, what should be in yum.conf ?

kitchin

Member
Sep 18, 2011
24
0
51
cPanel Access Level
Root Administrator
When using MariaDB, what excludes should be in /etc/yum.conf ?
We have
exclude=courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* p0f php* proftpd* pure-ftpd* spamassassin* squirrelmail*​

And in /etc/yum.repos.d we have CentOS 7 stuff plus:
MariaDB100.repo, EA4.repo, epel-testing.repo, epel.repo, vz.rep
Our setup is pretty simple:
CENTOS 7.3 x86_64 virtuozzo ... WHM 62.0 (build 15)
LiteSpeed 5.1.3

This is a manged server, and I don't know if the hosting company installed MariaDB using WHM.

Our goal is to be able to use
$ yum update
to update stuff cPanel does not manage.

Our problem is that yum updated MariaDB and then WHM showed the old version but PHP pages saw the new version. On advice from the hosting company, we fixed that with
$ /scripts/upcp --force

So we'd like to know what the standard, plain vanilla excludes should be in yum.conf for cPanel using MariaDB.

Thanks!

 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

Here's what the exclude= line in /etc/yum.conf looks like on a cPanel system with MariaDB installed:

Code:
exclude=courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* p0f php* proftpd* pure-ftpd* spamassassin* squirrelmail*
Here's an example of the packages you will see installed on the system after converting to MariaDB via "WHM >> MySQL/MariaDB Upgrade":

Code:
# rpm -qa|grep MariaDB
MariaDB-common-10.1.21-1.el7.centos.x86_64
MariaDB-shared-10.1.21-1.el7.centos.x86_64
MariaDB-server-10.1.21-1.el7.centos.x86_64
MariaDB-devel-10.1.21-1.el7.centos.x86_64
MariaDB-client-10.1.21-1.el7.centos.x86_64
Thus, you wouldn't want to exclude the MariaDB* package from YUM, or else you would not be able to receive updates to these packages. Could you verify what you noticed in cPanel/WHM, and what the output to the above RPM command was when you noticed the incorrect version?

Thank you.