+2 votes
in Databases by (71.8k points)
The CentOS repository does not have the latest MariaDB database server/client. How can I install the latest version?

1 Answer

+1 vote
by (349k points)
selected by
 
Best answer

Here are the steps to install the latest MariaDB 10.4 on the CentOS machine:

  • Go to https://downloads.mariadb.org/mariadb/repositories
  • Choose a Distro (CentOS)  -> Choose a Release (your CentOS release) -> Choose a Version (your CentOS version)Centos mariadb installation
  • Create a file (MariaDB.repo or something similar) under /etc/yum.repos.d/ and copy and paste the following lines in it.
# MariaDB 10.4 CentOS repository list - created 2019-11-09 05:09 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
  • After the file is in place, install MariaDB by running the following command on the terminal.
sudo yum install MariaDB-server MariaDB-client

If the above steps give the error, check the link given in the first step.

Related questions

+2 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer
+3 votes
1 answer

...