skip to Main Content

I would like to install MariaDB version 5.5.56 on CENTOS 7(EC2 Instance). I tried using the command

sudo yum install MariaDB-server-5.5.56

But it says the package is unavailable. I need this specific version of MariaDB and I cant seem to find the solution.

If I run sudo yum install MariaDB-server, yum installs the 5.5.60 version.

Need guidance on this.

2

Answers


  1. The most reliable way is to download the tarball from the official site and make it from source. It’s more complicated than getting it through a package manager, but downgrading is not officially supported, and if you run into issues there’s little help available from them.

    To do that, you can use the instructions for setting up a proper build environment, found here. Once that’s done, you can follow the instructions here to build the software.

     

    If you still want to use yum, MariaDB does have an archive; it can be found here. Follow the instructions listed here to configure yum to only grab the specific minor release you want. Just from a quick look, this link is a good place to start.

    I’ve pasted their example configuration below, with some alterations to show you a better idea of what it would look like.

    [mariadb]
    name = MariaDB-server-5.5.56
    baseurl=http://archive.mariadb.org/mariadb-5.5.56/yum/centos7-amd64
    gpgkey=http://archive.mariadb.org/mariadb-5.5.56/yum/centos7-amd64/rpms/MariaDB-5.5.56-centos7-x86_64-server.rpm
    gpgcheck=1
    

    Once done, you run

    sudo yum clean metadata
    

    and try to install as normal.

    Login or Signup to reply.
  2. if you get No package MariaDB-Galera-server available. Check file /etc/yum.conf, if my case there was a string: exclude=ansible1.9,mysql,mariadb,mariadb-,Percona-XtraDB-,Percona--55,Percona--56,Percona--51,Percona--50 Just comment this string and install goes well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search