All pages
Powered by GitBook
1 of 10

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

About the MariaDB RPM Files

Provides an overview of the RPM packages available for MariaDB, listing the various RPMs such as server, client, backup, and shared libraries, and explaining their contents and dependencies.

Available RPM Packages

The available RPM packages depend on the specific MariaDB release series.

Available RPM Packages in MariaDB

The following RPMs are available in current versions of MariaDB:

Package Name
Description

Installing RPM Packages

Preferably, you should install MariaDB RPM packages using the package manager of your Linux distribution, for example yum orzypper. But you can also use the lower-level rpm tool.

Actions Performed by RPM Packages

Users and Groups Created

When the mariadb-server RPM package is installed, it will create a user and group named mysql, if it does not already exist.

See Also

This page is licensed: CC BY-SA / Gnu FDL

mariadb-common

Character set files and /etc/my.cnf

mariadb-common-debuginfo

Debuginfo for character set files and /etc/my.cnf

mariadb-compat

Old shared client libraries, may be needed by old mariadb or mysql clients

mariadb-connect-engine

The CONNECT storage engine.

mariadb-connect-engine-debuginfo

Debuginfo for the CONNECT storage engine.

mariadb-cracklib-password-check

The cracklib_password_check password validation plugin.

mariadb-cracklib-password-check

Debuginfo for the cracklib_password_check password validation plugin.

mariadb-devel

Development headers and static libraries.

mariadb-devel-debuginfo

Debuginfo for development headers and static libraries.

mariadb-gssapi-server

The gssapi authentication plugin.

mariadb-gssapi-server-debuginfo

Debuginfo for the gssapi authentication plugin.

mariadb-rocksdb-engine

The MyRocks storage engine.

mariadb-rocksdb-engine-debuginfo

Debuginfo for the MyRocks storage engine.

mariadb-server

The server and server tools, like myisamchk and mariadb-hotcopy are here.

mariadb-server-compat

Symbolic links from old MySQL server executable names to MariaDB, like mysqld -> mariadbd or mysql_install_db -> mariadb-install-db. Good to have if you are using MySQL tool names in your scripts.

mariadb-server-debuginfo

Debuginfo for the server and server tools, like myisamchk and mariadb-hotcopy are here.

mariadb-shared

Dynamic client libraries.

mariadb-shared-debuginfo

Debuginfo for dynamic client libraries.

mariadb-test

mysql-client-test executable, and mysql-test framework with the tests.

mariadb-test-debuginfo

Debuginfo for mysql-client-test executable, and mysql-test framework with the tests.

mariadb-tokudb-engine

The TokuDB storage engine.

mariadb-tokudb-engine-debuginfo

Debuginfo for the TokuDB storage engine.

galera-4

The WSREP provider for Galera 4.

mariadb-backup

mariadb-backup is a command-line utility for creating consistent and reliable backups of MariaDB databases, supporting full and incremental backup options.

mariadb-backup-debuginfo

Debuginfo for mariadb-backup

mariadb-client

Client tools like mariadb CLI, mariadb-dump, and others.

mariadb-client-compat

Symbolic links from old MySQL tool names to MariaDB, like mysqladmin -> mariadb-admin or mysql -> mariadb. Good to have if you are using MySQL tool names in your scripts.

mariadb-client-debuginfo

Debuginfo for client tools like mariadb CLI, mariadb-dump, and others.

Installing MariaDB with yum

Installing MariaDB RPM Files

Install and manage MariaDB Server using RPM packages. This section provides detailed instructions for deploying and upgrading MariaDB on RPM-based Linux distributions.

Checking MariaDB RPM Package Signatures

Instructions on how to verify the integrity of MariaDB RPM packages using GPG signatures, including importing the public key and running `rpm --checksig`.

MariaDB RPM packages since are signed.

The key we use has an id of 1BB943DB and the key fingerprint is:

1993 69E5 404B D5FC 7D2F E43B CBCB 082A 1BB9 43DB

To check the signature you first need to import the public part of the key like so:

gpg --keyserver hkp://pgp.mit.edu --recv-keys 1BB943DB

Next you need to let pgp know about the key like so:

gpg --export --armour 1BB943DB > mariadb-signing-key.asc
sudo rpm --import mariadb-signing-key.asc

You can check to see if the key was imported with:

Once the key is imported, you can check the signature of the MariaDB RPM files by running the something like the following in your download directory:

The output of the above will look something like this (make sure gpg shows up on each OK line):

See Also

This page is licensed: CC BY-SA / Gnu FDL

Why Source RPMs (SRPMs) Aren't Packaged For Some Platforms

Explains the limitations in providing Source RPMs (SRPMs) for certain platforms due to CMake version requirements and build system dependencies.

MariaDB source RPMs (SRPMs) are not packaged on all platforms for which MariaDB RPMs are packaged.

The reason is that MariaDB's build process relies heavily on for a lot of things. In this specific case, MariaDB's build process relies on to build RPMs. The specific package generator that it uses to build RPMs is called .

Support for source RPMs in became usable with MariaDB's build system starting from around . This means that we do not produce source RPMs on platforms where the installed version is older than that.

See also .

This page is licensed: CC BY-SA / Gnu FDL

rpm -qa gpg-pubkey*
rpm --checksig $(find . -name '*.rpm')
me@desktop:~$ rpm --checksig $(find . -name '*.rpm')
./kvm-rpm-centos5-amd64/rpms/MariaDB-test-5.1.55-98.el5.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK
./kvm-rpm-centos5-amd64/rpms/MariaDB-server-5.1.55-98.el5.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK
./kvm-rpm-centos5-amd64/rpms/MariaDB-client-5.1.55-98.el5.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK
./kvm-rpm-centos5-amd64/rpms/MariaDB-shared-5.1.55-98.el5.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK
./kvm-rpm-centos5-amd64/rpms/MariaDB-devel-5.1.55-98.el5.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK
./kvm-rpm-centos5-amd64/rpms/MariaDB-debuginfo-5.1.55-98.el5.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK
./kvm-rpm-centos5-amd64/srpms/MariaDB-5.1.55-98.el5.src.rpm: (sha1) dsa sha1 md5 gpg OK
cmake
CMake CPack Package Generators
CPackRPM
CPackRPM
cmake 3.10
cmake
Building MariaDB from a Source RPM
Installing MariaDB RPM Files
Troubleshooting MariaDB Installs on RedHat/CentOS

MariaDB for DirectAdmin Using RPMs

Specific instructions for installing MariaDB RPMs on servers running the DirectAdmin control panel, including necessary configuration edits to prevent conflicts.

If you are using DirectAdmin and you encounter any issues with Installing MariaDB with YUM, then the directions below may help. The process is very straightforward.

Installing with YUM is preferable to installing the MariaDB RPM packages manually, so only do this if you are having issues such as: Starting httpd:

  httpd:
    Syntax error on line 18 of /etc/httpd/conf/httpd.conf:
    Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
      Cannot load /usr/lib/apache/libphp5.so into server:
        libmysqlclient.so.18: cannot open shared object file: No such file or directory

Or:

RPM Installation

To install the RPMs, there is a quick and easy guide to . Follow the instructions there.

Necessary Edits

We do not want DirectAdmin's custombuild to remove/overwrite our MariaDB installation whenever an update is performed. To rectify this, disable automatic MySQL installation.

Edit /usr/local/directadmin/custombuild/options.conf and replace mysql_inst=yes with mysql_inst=no

When MariaDB is installed manually (i.e. not using YUM), updates are not automatic. You will need to update the RPMs yourself.

This page is licensed: CC BY-SA / Gnu FDL

Troubleshooting MariaDB Installs on RHEL / CentOS

Solutions for common installation issues on RHEL and CentOS, such as conflicts with existing MySQL installations and handling configuration file backups (.rpmsave).

The following article is about different issues people have encountered when installing MariaDB on RHEL / CentOS.

It is highly recommended to install with yum where possible.

In RHEL/ CentOS it is also possible to install a RPM or a tar ball. The RPM is the preferred version, except if you want to install many versions of MariaDB or install MariaDB in a non standard location.

Replacing MySQL

If you removed an MySQL RPM to install MariaDB, note that the MySQL RPM on uninstall renames /etc/my.cnf to /etc/my.cnf.rpmsave.

After installing MariaDB you should do the following to restore your configuration options:

Unsupported configuration options

If you are using any of the following options in your /etc/my.cnf or other my.cnf file you should remove them. This is also true for MySQL 5.1 or newer:

See also

This page is licensed: CC BY-SA / Gnu FDL

Starting httpd:
  httpd:
    Syntax error on line 18 of /etc/httpd/conf/httpd.conf:
    Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
      Cannot load /usr/lib/apache/libphp5.so into server:
        /usr/lib/apache/libphp5.so: undefined symbol: client_errors
sudo sed -i 's/^mysql_inst=yes/mysql_inst=no/' /usr/local/directadmin/custombuild/options.conf
Installing MariaDB with the RPM Tool
Installing with yum (recommended)
Installing MariaDB RPM Files
Checking MariaDB RPM Package Signatures
mv /etc/my.cnf.rpmsave /etc/my.cnf
skip-bdb

Installing MariaDB With the rpm Tool

A guide to installing MariaDB using the low-level `rpm` command, suitable for situations where package managers like `yum` or `dnf` are not available or preferred.

This article describes how to download the RPM files and install them using therpm command.

It is highly recommended to Install MariaDB with yum where possible.

Navigate toand choose the desired database version and then select the RPMs that match your Linux distribution and architecture.

Clicking those links takes you to a local mirror. Choose the rpms link and download the desired packages. The packages will be similar to the following:

MariaDB-client-5.2.5-99.el5.x86_64.rpm
MariaDB-debuginfo-5.2.5-99.el5.x86_64.rpm
MariaDB-devel-5.2.5-99.el5.x86_64.rpm
MariaDB-server-5.2.5-99.el5.x86_64.rpm
MariaDB-shared-5.2.5-99.el5.x86_64.rpm
MariaDB-test-5.2.5-99.el5.x86_64.rpm

For a standard server installation you will need to download at least the client, shared, and server RPM files. See About the MariaDB RPM Files for more information about what is included in each RPM package.

After downloading the MariaDB RPM files, you might want to check their signatures. See Checking MariaDB RPM Package Signatures for more information about checking signatures.

Prior to installing MariaDB, be aware that it will conflict with an existing installation of MySQL. To check whether MySQL is already installed, issue the command:

If necessary, you can remove found MySQL packages before installing MariaDB.

To install MariaDB, use the command:

You should see output such as the following:

Be sure to follow the instructions given in the preceding output and create a password for the root user either by using or by running the /usr/bin/mysql_secure_installation script.

Installing the MariaDB RPM files installs the MySQL tools in the /usr/bin directory. You can confirm that MariaDB has been installed by using the client program. Issuing the command mariadb should give you the MariaDB cursor.

See Also

This page is licensed: CC BY-SA / Gnu FDL

rpm --checksig $(find . -name '*.rpm')
mariadb-admin
mariadb
Installing MariaDB with yum
Troubleshooting MariaDB Installs on RedHat/CentOS
Checking MariaDB RPM Package Signatures
rpm -qa 'mysql*'
rpm -ivh MariaDB-*
Preparing...                ########################################### [100%]
   1:MariaDB-shared         ########################################### [ 14%]
   2:MariaDB-client         ########################################### [ 29%]
   3:MariaDB-client         ########################################### [ 43%]
   4:MariaDB-debuginfo      ########################################### [ 57%]
   5:MariaDB-devel          ########################################### [ 71%]
   6:MariaDB-server         ########################################### [ 86%]

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mariadb-admin -u root password 'new-password'
/usr/bin/mariadb-admin -u root -h hostname password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MySQL manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MariaDB is available at http://www.askmonty.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from
Monty Program Ab. You can contact us about this at sales@askmonty.org.
Alternatively consider joining our community based development effort:
http://askmonty.org/wiki/index.php/MariaDB#How_can_I_participate_in_the_development_of_MariaDB

Starting MySQL....[  OK  ]
Giving mysqld 2 seconds to start
   7:MariaDB-test           ########################################### [100%]

MariaDB Installation via RPMs on CentOS 7

A detailed walkthrough for installing a specific legacy version of MariaDB (10.1.21) on CentOS 7 using individual RPM packages, including dependency resolution.

This guide provides the detailed steps for installing MariaDB 10.1.21 via individual RPM packages on CentOS 7. The process involves installing dependencies, then the main packages, and resolving potential conflicts as they appear.

The RPMs needed for the installation are available from the MariaDB website. The required packages for this guide are:

Step-by-Step Installation

1. Install Basic Dependencies

First, use yum to install some general system packages that may be required.

2. Install MariaDB RPM Packages

Next, install the downloaded RPMs in sequence. Make sure to run these commands as a user with sufficient privileges (e.g., using sudo).

During this process, you may encounter errors related to dependencies or conflicts. The sections below describe these common issues and their solutions.

Troubleshooting Common Installation Errors and Warnings

Error 1: Package Conflict with mariadb-libs

While installing mariadb-common, you may encounter a conflict with an existing package.

You must find and remove the conflicting mariadb-libs package.

After removing it, you can run the rpm -ivh MariaDB-10.1.21-centos7-x86_64-common.rpm command again.

Error 2: Failed Dependency for Galera

While installing the Galera package, the installation may fail due to a missing library.

The required dependency libboost_program_options can be installed using yum.

After installing boost-devel, you can run the rpm -ivh galera... command again.

Warning: GPG Key NOKEY

You may also see a warning about a missing GPG key during the installation.

This warning can be resolved by importing the official MariaDB GPG key.

Post-Installation

After all RPMs are successfully installed, the final step is to secure the server. This involves setting the root password, removing test databases, and disallowing remote root login.


This page is licensed: CC BY-SA / Gnu FDL

jemalloc-3.6.0-1.el7.x86_64.rpm
MariaDB-10.1.21-centos7-x86_64-client.rpm
MariaDB-10.1.21-centos7-x86_64-compat.rpm
galera-25.3.19-1.rhel7.el7.centos.x86_64.rpm
jemalloc-devel-3.6.0-1.el7.x86_64.rpm
MariaDB-10.1.21-centos7-x86_64-common.rpm
MariaDB-10.1.21-centos7-x86_64-server.rpm
yum install rsync nmap lsof perl-DBI nmap-ncat
rpm -ivh jemalloc-3.6.0-1.el7.x86_64.rpm
rpm -ivh jemalloc-devel-3.6.0-1.el7.x86_64.rpm
rpm -ivh MariaDB-10.1.21-centos7-x86_64-common.rpm
rpm -ivh MariaDB-10.1.21-centos7-x86_64-compat.rpm
rpm -ivh MariaDB-10.1.21-centos7-x86_64-client.rpm
rpm -ivh galera-25.3.19-1.rhel7.el7.centos.x86_64.rpm
rpm -ivh MariaDB-10.1.21-centos7-x86_64-server.rpm
# rpm -ivh MariaDB-10.1.21-centos7-x86_64-common.rpm 

warning: MariaDB-10.1.21-centos7-x86_64-common.rpm: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY
error: Failed dependencies:
	mariadb-libs < 1:10.1.21-1.el7.centos conflicts with MariaDB-common-10.1.21-1.el7.centos.x86_64
# Search for the installed package
rpm -qa | grep mariadb-libs
# Expected output: mariadb-libs-5.5.52-1.el7.x86_64

# Remove the conflicting package (use the exact name from the command above)
rpm -ev --nodeps mariadb-libs-5.5.52-1.el7.x86_64
# rpm -ivh galera-25.3.19-1.rhel7.el7.centos.x86_64.rpm 

error: Failed dependencies:
	libboost_program_options.so.1.53.0()(64bit) is needed by galera-25.3.19-1.rhel7.el7.centos.x86_64
yum install boost-devel.x86_64
warning: galera-25.3.19-1.rhel7.el7.centos.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY
rpm --import http://yum.mariadb.org/RPM-GPG-KEY-MariaDB
# First, start the newly installed MariaDB service
systemctl start mariadb

# Now, run the security script and follow the prompts
mysql_secure_installation

Installing MariaDB with zypper

Detailed steps for installing MariaDB on SLES and OpenSUSE using the `zypper` package manager, including repository configuration and package installation.

On SLES, OpenSUSE, and other similar Linux distributions, it is highly recommended to install the relevant RPM packages from MariaDB's repository using zypper.

This page walks you through the simple installation steps using zypper.

Adding the MariaDB ZYpp repository

We currently have ZYpp repositories for the following Linux distributions:

  • SUSE Linux Enterprise Server (SLES) 12

  • SUSE Linux Enterprise Server (SLES) 15

  • OpenSUSE 15

  • OpenSUSE 42

Using the MariaDB Package Repository Setup Script

If you want to install MariaDB with zypper, then you can configure zypper to install from MariaDB Corporation's MariaDB Package Repository by using the .

MariaDB Corporation provides a MariaDB Package Repository for several Linux distributions that use zypper to manage packages. This repository contains software packages related to MariaDB Server, including the server itself, , , , and . The MariaDB Package Repository setup script automatically configures your system to install packages from the MariaDB Package Repository.

To use the script, execute the following command:

Note that this script also configures a repository for and a repository for MariaDB Tools, which currently only contains and its dependencies.

See for more information.

Using the MariaDB Repository Configuration Tool

If you want to install MariaDB with zypper, then you can configure zypper to install from MariaDB Foundation's MariaDB Repository by using the .

The MariaDB Foundation provides a MariaDB repository for several Linux distributions that use zypper to manage packages. This repository contains software packages related to MariaDB Server, including the server itself, , , , and . The MariaDB Repository Configuration Tool can easily generate the appropriate commands to add the repository for your distribution.

For example, if you wanted to use the repository to install on SLES 15, then you could use the following commands to add the MariaDB zypper repository:

Pinning the MariaDB Repository to a Specific Minor Release

If you wish to pin the zypper repository to a specific minor release, or if you would like to downgrade to a specific minor release, then you can create a zypper repository with the URL hard-coded to that specific minor release.

So if you can't find the repository of a specific minor release at yum.mariadb.org, then it would be a good idea to check the archive.

For example, if you wanted to pin your repository to on SLES 15, then you could use the following commands to add the MariaDB zypper repository:

Updating the MariaDB ZYpp repository to a New Major Release

MariaDB's zypper repository can be updated to a new major release. How this is done depends on how you originally configured the repository.

Updating the Major Release with the MariaDB Package Repository Setup Script

If you configured zypper to install from MariaDB Corporation's MariaDB Package Repository by using the , then you can update the major release that the repository uses by running the script again.

Updating the Major Release with the MariaDB Repository Configuration Tool

If you configured zypper to install from MariaDB Foundation's MariaDB Repository by using the , then you can update the major release that the repository uses by removing the repository for the old version and adding the repository for the new version.

First, you can remove the repository for the old version by executing the following command:

After that, you can add the repository for the new version. For example, if you wanted to use the repository to install on SLES 15, then you could use the following commands to add the MariaDB zypper repository:

After that, the repository should refer to .

Importing the MariaDB GPG Public Key

Before MariaDB can be installed, you also have to import the GPG public key that is used to verify the digital signatures of the packages in our repositories. This allows the zypper and rpm utilities to verify the integrity of the packages that they install.

The id of our GPG public key is 0xcbcb082a1bb943db. The short form of the id is 0x1BB943DB. The full key fingerprint is:

The utility can be used to import this key. For example:

Once the GPG public key is imported, you are ready to install packages from the repository.

Installing MariaDB Packages with ZYpp

After the zypper repository is configured, you can install MariaDB by executing the command. The specific command that you would use would depend on which specific packages that you want to install.

Installing the Most Common Packages with ZYpp

To Install the most common packages, execute the following command:

Installing MariaDB Server with ZYpp

To Install MariaDB Server, execute the following command:

Installing MariaDB Galera Cluster with ZYpp

The process to install MariaDB Galera Cluster with the MariaDB zypper repository is practically the same as installing standard MariaDB Server.

Galera Cluster support has been included in the standard MariaDB Server packages, so you will need to install the MariaDB-server package, as you normally would.

You also need to install the galera-4 package to obtain the 4 wsrep provider library.

To install MariaDB Galera Cluster, you could execute the following command:

If you haven't yet imported the MariaDB GPG public key, then zypper will prompt you to import it after it downloads the packages, but before it prompts you to install them.

See for more information on MariaDB Galera Cluster.

Installing MariaDB Clients and Client Libraries with ZYpp

has been included as the client library. However, the package name for the client library has not been changed.

To Install the clients and client libraries, execute the following command:

Installing mariadb-backup with ZYpp

To install , execute the following command:

Installing Plugins with ZYpp

Some may also need to be installed.

For example, to install the password validation plugin, execute the following command:

Installing Debug Info Packages with ZYpp

The MariaDB zypper repository also contains packages. These package may be needed when .

Installing Debug Info for the Most Common Packages with ZYpp

To install for the most common packages, execute the following command:

Installing Debug Info for MariaDB Server with ZYpp

To install for MariaDB Server, execute the following command:

Installing Debug Info for MariaDB Clients and Client Libraries with ZYpp

has been included as the client library. However, the package name for the client library has not been changed.

To install for the clients and client libraries, execute the following command:

Installing Debug Info for mariadb-backup with ZYpp

To install for , execute the following command:

Installing Debug Info for Plugins with ZYpp

For some , may also need to be installed.

For example, to install for the password validation plugin, execute the following command:

Installing Older Versions from the Repository

The MariaDB zypper repository contains the last few versions of MariaDB. To show what versions are available, use the following command:

In the output you will see the available versions.

To install an older version of a package instead of the latest version we just need to specify the package name, a dash, and then the version number. And we only need to specify enough of the version number for it to be unique from the other available versions.

However, when installing an older version of a package, if zypper has to install dependencies, then it will automatically choose to install the latest versions of those packages. To ensure that all MariaDB packages are on the same version in this scenario, it is necessary to specify them all.

The packages that the MariaDB-server package depend on are: MariaDB-client, MariaDB-shared, and MariaDB-common. Therefore, to install from this zypper repository, we would do the following:

The rest of the install and setup process is as normal.

After Installation

After the installation is complete, you can .

If you are using , then keep in mind that the first node will have to be .

This page is licensed: CC BY-SA / Gnu FDL

Installing MariaDB with yum/dnf

Comprehensive guide to installing MariaDB using `yum` or `dnf` on RHEL, CentOS, and Fedora, covering repository configuration, GPG key import, and package installation.

On RHEL, CentOS, Fedora, and other similar Linux RPM based distributions, these provide MariaDB packages. These are supported by those distributions. If you have a particular need for a later version than what is in the distribution, then MariaDB provides repositories for them.

Using repositories rather than installing RPM allows for an ease of update when a new release is made. It is highly recommended to install the relevant RPM packages from MariaDB's repository using yum or dnf. Centos 7 still uses yum, most others use dnf, and SUSE/openSUSE use zypper.

This page walks you through the simple installation steps using dnf and yum.

Adding the MariaDB YUM repository

We currently have YUM/DNF repositories for the following Linux distributions, and for the versions that are in standard (not extended) support:

  • Red Hat Enterprise Linux (RHEL)

  • CentOS

  • Fedora

  • openSUSE

Using the MariaDB Package Repository Setup Script

If you want to install MariaDB with yum, then you can configure yum to install from MariaDB Corporation's MariaDB Package Repository by using the .

MariaDB Corporation provides a MariaDB Package Repository for several Linux distributions that use yum to manage packages. This repository contains software packages related to MariaDB Server, including the server itself, , , , and . The MariaDB Package Repository setup script automatically configures your system to install packages from the MariaDB Package Repository.

To use the script, execute the following command:

The script also configures a repository for and a repository for MariaDB Tools, which currently only contains and its dependencies.

See for more information.

Using the MariaDB Repository Configuration Tool

If you want to install MariaDB with yum, then you can configure yum to install from MariaDB Foundation's MariaDB Repository by using the .

The MariaDB Foundation provides a MariaDB repository for several Linux distributions that use yum to manage packages. This repository contains software packages related to MariaDB Server, including the server itself, , , , and . The MariaDB Repository Configuration Tool can easily generate the appropriate configuration file to add the repository for your distribution.

Once you have the appropriate repository configuration section for your distribution, add it to a file named MariaDB.repo under /etc/yum.repos.d/.

For example, if you wanted to use the repository to install on RHEL (any version), then you could use the following yum repository configuration in /etc/yum.repos.d/MariaDB.repo:

The example file above includes a gpgkey line to automatically fetch the GPG public key that is used to verify the digital signatures of the packages in our repositories. This allows the yum, dnf, and rpm utilities to verify the integrity of the packages that they install.

Pinning the MariaDB Repository to a Specific Minor Release

If you wish to pin the yum repository to a specific minor release, or if you would like to do a yum downgrade to a specific minor release, then you can create a yum repository configuration with a baseurl option set to that specific minor release.

For example, if you wanted to pin your repository to on CentOS 7, then you could use the following yum repository configuration in /etc/yum.repos.d/MariaDB.repo:

To change an existing repository configuration, you may execute the following command:

Updating the MariaDB YUM repository to a New Major Release

MariaDB's yum repository can be updated to a new major release. How this is done depends on how you originally configured the repository.

Updating the Major Release with the MariaDB Package Repository Setup Script

If you configured yum to install from MariaDB Corporation's MariaDB Package Repository by using the , then you can update the major release that the repository uses by running the script again.

Updating the Major Release with the MariaDB Repository Configuration Tool

If you configured yum to install from MariaDB Foundation's MariaDB Repository by using the , then you can update the major release that the repository uses by updating the yum repository configuration file in-place. For example, if you wanted to change the repository from to , and if the repository configuration file was at /etc/yum.repos.d/MariaDB.repo, then you could execute the following:

After that, the repository should refer to .

If the yum repository is pinned to a specific minor release, then the above sed command can result in an invalid repository configuration. In that case, the recommended options are:

  • Edit the MariaDB.repo repository file manually.

  • Or delete the MariaDB.repo repository file, and then install the repository of the new version with the more robust .

The MariaDB GPG Key

See the page for information on the various keys used by MariaDB.

Installing MariaDB Packages with YUM/DNF

After the dnf/yum repository is configured, you can install MariaDB by executing the or command. The specific command that you would use would depend on which specific packages that you want to install.

Installing the Most Common Packages

To Install the most common packages, execute the following command:

Installing MariaDB Server

To Install MariaDB Server, execute the following command:

Installing MariaDB Galera Cluster with YUM

The process to install MariaDB Galera Cluster with the MariaDB yum repository is practically the same as installing standard MariaDB Server.

You need to install the galera-4 package to obtain the 4 wsrep provider library.

To install MariaDB Galera Cluster, you could execute the following command:

If you haven't yet imported the MariaDB GPG public key, then yum will prompt you to import it after it downloads the packages, but before it prompts you to install them.

See for more information on MariaDB Galera Cluster.

Installing MariaDB Clients and Client Libraries with YUM

has been included as the client library (staticly linked). However, the package name for the client library has not been changed.

To Install the clients and client libraries, execute the following command:

If you want compile your own programs against MariaDB Connector/C, execute the following command:

Installing mariadb-backup with YUM

To install , execute the following command:

Installing Plugins with YUM

Some may also need to be installed.

For example, to install the password validation plugin, execute the following command:

Installing Debug Info Packages with YUM

The MariaDB yum repository also contains packages. These package may be needed when .

Installing Debug Info for the Most Common Packages with YUM

To install for the most common packages, execute the following command:

All packages have their debuginfo by appending -debuginfo to the package name.

Installing Debug Info for MariaDB Server with YUM

To install for MariaDB Server, execute the following command:

Installing Older Versions from the Repository

The MariaDB yum repository contains the last few versions of MariaDB. To show what versions are available, use the following command:

The output shows the available versions. For example:

The MariaDB repository in this example contains MariaDB 12.1.2, 12.0.2, and 11.8.2; and the appstream repository contains MariaDB 10.3.39.

To install an older version of a package instead of the latest version we just need to specify the package name, a dash, and then the version number. And we only need to specify enough of the version number for it to be unique from the other available versions.

However, when installing an older version of a package, if dependencies need to be installed, then it will automatically choose to install the latest versions of those packages, which can sometimes break those dependencies. To ensure that all MariaDB packages are on the same version in this scenario, it is necessary to specify them all.

The MariaDB packages that the MariaDB-server package depend on are: MariaDB-client, MariaDB-shared, and MariaDB-common. Therefore, to install MariaDB 12.0.2 from this yum repository, we could do the following (putting the version in a variable and each package on its own line so things are cleaner):

For MariaDB Enterprise it is necessary to specify the release part of the version number as well, but with an underscore (_) instead of a dash (-), as that is how dnf/yum see the version number. For example, for MariaDB Enterprise Server 11.8.5-2 you would specify the version as 11.8.5_2. For example:

The rest of the install and setup process is as normal.

After Installation

After the installation is complete, you can with:

If you are using , then keep in mind that the first node will have to be .

This page is licensed: CC BY-SA / Gnu FDL

SUSE
MariaDB Package Repository setup script
clients and utilities
client libraries
plugins
mariadb-backup
Percona XtraBackup
MariaDB Package Repository Setup and Usage
MariaDB Repository Configuration Tool
clients and utilities
client libraries
plugins
mariadb-backup
MariaDB 10.6
MariaDB Package Repository setup script
MariaDB Repository Configuration Tool
MariaDB 10.6
MariaDB 10.11
MariaDB 10.11
MariaDB Package Repository setup script
GPG
dnf
yum
mariadb-backup
plugins
cracklib_password_check
debuginfo
debuginfo
debuginfo
start MariaDB
Galera
MariaDB Galera Cluster
MariaDB Galera Cluster
MariaDB Package Repository setup script
clients and utilities
client libraries
plugins
mariadb-backup
Percona XtraBackup
MariaDB Package Repository Setup and Usage
MariaDB Repository Configuration Tool
clients and utilities
client libraries
plugins
mariadb-backup
MariaDB 10.6
MariaDB 10.6.21
MariaDB Package Repository setup script
MariaDB Repository Configuration Tool
MariaDB 10.6
MariaDB 10.6
rpm
zypper
mariadb-backup
plugins
cracklib_password_check
debuginfo
debuginfo
debuginfo
debuginfo
debuginfo
mariadb-backup
plugins
debuginfo
debuginfo
cracklib_password_check
MariaDB 10.6.21
start MariaDB
MariaDB MaxScale
Galera
MariaDB Galera Cluster
MariaDB Galera Cluster
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
[mariadb]
name = MariaDB
baseurl = https://rpm.mariadb.org/10.6/rhel/$releasever/$basearch
gpgkey= https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
[mariadb]
name = MariaDB-10.8.8
baseurl= http://archive.mariadb.org/mariadb-10.8.8/yum/centos/$releasever/$basearch
gpgkey= https://archive.mariadb.org/PublicKey
gpgcheck=1
sudo yum clean all
sudo sed -i 's/10.6/10.11/' /etc/yum.repos.d/MariaDB.repo
sudo dnf install MariaDB-server galera-4 MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common
sudo dnf install MariaDB-server
sudo dnf install MariaDB-server MariaDB-client galera-4
sudo dnf install MariaDB-client MariaDB-shared
sudo dnf install MariaDB-devel
sudo yum install MariaDB-backup
sudo dnf install MariaDB-cracklib-password-check
sudo dnf install MariaDB-server-debuginfo MariaDB-client-debuginfo MariaDB-shared-debuginfo MariaDB-backup-debuginfo MariaDB-common-debuginfo
sudo dnf install MariaDB-server-debuginfo
sudo dnf list --showduplicates MariaDB-server
sudo dnf list --showduplicates MariaDB-server
Last metadata expiration check: 0:01:42 ago on Fri 12 Dec 2025 03:47:20 PM UTC.
Available Packages
MariaDB-server.x86_64  11.8.2-1.el8                               mariadb-main
MariaDB-server.x86_64  12.0.2-1.el8                               mariadb-main
MariaDB-server.x86_64  12.1.2-1.el8                               mariadb-main
mariadb-server.x86_64  3:10.3.39-1.module+el8.8.0+1452+2a7eab68   appstream
ver=12.0.2
sudo dnf install \
  MariaDB-server-${ver} \
  MariaDB-client-${ver} \
  MariaDB-shared-${ver} \
  MariaDB-common-${ver}
ver=11.8.5_2
sudo dnf install \
  MariaDB-server-${ver} \
  MariaDB-client-${ver} \
  MariaDB-shared-${ver} \
  MariaDB-common-${ver}
sudo systemctl start mariadb 
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
sudo zypper addrepo --gpgcheck --refresh https://yum.mariadb.org/10.6/sles/15/x86_64 mariadb
sudo zypper --gpg-auto-import-keys refresh
sudo zypper removerepo mariadb
sudo zypper addrepo --gpgcheck --refresh https://yum.mariadb.org/10.6.21/sles/15/x86_64 mariadb
sudo zypper removerepo mariadb
sudo zypper addrepo --gpgcheck --refresh https://yum.mariadb.org/10.6/sles/15/x86_64 mariadb
sudo zypper --gpg-auto-import-keys refresh
1993 69E5 404B D5FC 7D2F E43B CBCB 082A 1BB9 43DB
sudo rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
sudo zypper install MariaDB-server galera-4 MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common
sudo zypper install MariaDB-server
sudo zypper install MariaDB-server MariaDB-client galera-4
sudo zypper install MariaDB-client MariaDB-shared
sudo zypper install MariaDB-backup
sudo zypper install MariaDB-cracklib-password-check
sudo zypper install MariaDB-server-debuginfo MariaDB-client-debuginfo MariaDB-shared-debuginfo MariaDB-backup-debuginfo MariaDB-common-debuginfo
sudo zypper install MariaDB-server-debuginfo
sudo zypper install MariaDB-client-debuginfo MariaDB-shared-debuginfo
sudo zypper install MariaDB-backup-debuginfo
sudo zypper install MariaDB-cracklib-password-check-debuginfo
zypper search --details MariaDB-server
sudo zypper install MariaDB-server-10.6.21 MariaDB-client-10.6.21 MariaDB-shared-10.6.21 MariaDB-backup-10.6.21 MariaDB-common-10.6.21
debugging a problem
bootstrapped
debugging a problem
bootstrapped
MariaDB Connector/C
MariaDB Connector/C
MariaDB Connector/C
MariaDB 5.1.55
MariaDB 10.8.8
MariaDB MaxScale