Install MariaDB 10.5 on Fedora 32

MariaDB 10.5 Stable (10.5.4) was released on June 24, 2020. Fedora 32 ships with MariaDB 10.4 by default and MariaDB’s install page is still not updated for Fedora 32 but their repositories are.

To install MariaDB 10.5, the first step is to add MariaDB repository in your Fedora server.

Create MariaDB repository file.


$ sudo nano /etc/yum.repos.d/MariaDB.repo

It will launch the Nano editor. Paste the following code in it.


# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/fedora32-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Close the file by pressing Ctrl+C and entering Y when prompted.

Import the MariaDB GPG Key.

$ sudo rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

Install MariaDB Server and client.

$ sudo dnf install MariaDB-server MariaDB-client

Note: Notice the spelling of MariaDB in the command above. If you want to install MariaDB from the official Fedora repository, you would use the words ‘mariadb-server’ and ‘mariadb-client’ but if you are installing from the MariaDB repositories, you would use the command above with ‘M’ capitalised.

That’s all to it. If you have any question, shoot them in the comments below.