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
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 configureyum
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.
Once done, you run
and try to install as normal.
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.