Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mariadb, what should be in yum.conf ?

Discussion in 'Database Discussions' started by kitchin, Mar 8, 2017.

Tags:
  1. kitchin

    kitchin Member

    Joined:
    Sep 18, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    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!

     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page