0

I am experiencing some trouble with installing MariaDB 10.4 on Centos 7. The official mariaDB guide says that a new repo file MariaDB.repo should created in /etc/yum.repos.d/ with the contents of:

# MariaDB 10.4 CentOS repository list - created 2019-12-13 22:03 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-ppc64le
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

I've run yum-config-manager --enable MariaDB.repo and yum update and inspected the enabled repos:

$ enabled | grep maria
mariadb          MariaDB              86

This confirms that the new repo is enabled. The guide later says to run sudo yum install MariaDB-server MariaDB-client. Unfortunately, there is nothing to install as I am greeted with a message:

Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.anexia.at
 * epel: ftp.uni-kl.de
 * extras: mirror.easyname.at
 * remi-php74: remi.mirror.karneval.cz
 * remi-safe: remi.mirror.karneval.cz
 * updates: centos.anexia.at
No package MariaDB-server available.
  * Maybe you meant: mariadb-server
No package MariaDB-client available.

Notice that there is no mention of MariaDB.repo I just enabled. Also, the suggested package mariadb-server is version 5.5. What is the correct way to install MariaDB version 10.4 on Centos 7?

0

1 Answer 1

1

What you should do is to replace line:

baseurl = http://yum.mariadb.org/10.4/centos7-ppc64le

with

baseurl = http://yum.mariadb.org/10.4/centos7-amd64

The first line point to packages for PowerPC architecture. The second to x86 architecture

To explicitly enable this repo add this:

enabled=1

and then try to install

8
  • Thanks! You mean centos7-amd64, right? I also tried that and no MariaDB-server is found
    – sanjihan
    Commented Dec 14, 2019 at 9:49
  • @sanjihan you can add one more line to the repo file. WIll edit it in answer Commented Dec 14, 2019 at 9:52
  • Even after explicitly enabling it in .repo, I still only get mariadb-server.x86_64 1:5.5.64-1.el7 base in response to yum list MariaDB-server
    – sanjihan
    Commented Dec 14, 2019 at 9:56
  • try to install line this: yum install MariaDB-server-10.4.11 Commented Dec 14, 2019 at 9:58
  • No package MariaDB-server-10.4.11 available. :(
    – sanjihan
    Commented Dec 14, 2019 at 10:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .