How to Install MariaDB 10.5 on CentOS 8 | CentOS 7
The stable version of MariaDB 10.5 was released on June 2020 and it will be supported until June 2025. You can see all the new features in MariaDB 10.5 from the changes page. The software can be used free of charge under the conditions of the GNU General Public License Version 2.
There are multiple steps to install MariaDB 10.5 and these are steps:
Step 1. Add MariaDB YUM repository
In Linux whenever you want to install any type of packages you need to install it’s yum repositories. So Run the following commands to add the repository provided by MariaDB to your CentOS server.
Add repository to CentOS 8:
sudo tee /etc/yum.repos.d/mariadb.repo<<EOF [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.5/centos8-amd64 module_hotfixes=1 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
Add repository to CentOS 7:
sudo tee /etc/yum.repos.d/mariadb.repo<<EOF [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.5/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
And now Confirm the repository is working by updating cache.
sudo yum makecache
List available repositories:
$ sudo yum repolist
Step 2: Install MariaDB 10.5 on CentOS 8 | CentOS 7
And now when yum repository has been added and confirmed we proceed to install MariaDB 10.5 on Centos 8 and as well as Centos 7 on Linux machine.
sudo yum install MariaDB-server MariaDB-client
You can also check RPM package details:
$ rpm -qi MariaDB-server
Services Cloudtechtiq offers: