Want to test MariaDB development versions on Ubuntu 17.04? This brief tutorial is going to show students and new users steps to install MariaDB stable and development versions on Ubuntu systems.

Installing MariaDB stable version on Ubuntu is pretty easy. All one has to do is run the apt-get install mariad-server commands to install it. However, if you want to install the latest or development versions of MariaDB, you may have to add its repository to Ubuntu and this tutorial is going to show you how to do just that.

Step 1: Installing MariaDB Stable Version

Ubuntu may not always have the latest version of MariaDB server when it becomes available immediately in its repositories. If you want to always get the latest version as soon as they’re released, then add MariaDB repository directly in Ubuntu.

Adding the repository is easy.. To do that, run the commands below to add the repository key to Ubuntu.

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8

Next, run the commands below to add the repository for the current stable version, which is 10.1. Take notes of the version number as it changes when a new one is released.

Visit MariaDB download page to see the current stable version number.. update the commands below to reflect the latest version number.

[button-blue url=”https://downloads.mariadb.org/” target=”_self” position=”center”]Doanload Page[/button-blue]

Next, run the commands below to add the 10.1 package repository.

sudo sh -c "echo 'deb [arch=amd64,i386] https://mirrors.evowise.com/mariadb/repo/10.1/ubuntu '$(lsb_release -cs)' main' > /etc/apt/sources.list.d/MariaDB-10.1.list"

After adding the repository, all you have to do to install MariaDB Server is by running the commands below

sudo apt-get update sudo apt-get install mariadb-server mariadb-client

Step 2: Installing MariaDB Development Version

Now you know how to install MariaDB stable version, development version can be install the same way except that you must change the release number to match the release version. At the time of this writing the current development version was at 10.2.

Run the commands below to install MariaDB development version to Ubuntu.

sudo sh -c "echo 'deb [arch=amd64,i386] https://mirrors.evowise.com/mariadb/repo/10.2/ubuntu '$(lsb_release -cs)' main' > /etc/apt/sources.list.d/MariaDB-10.2.list"

Again, run the commands below to install the development.

sudo apt-get update sudo apt-get install mariadb-server mariadb-client

That’s it! You can also use this method to install the Alpha version which is setting at 10.3 at the time of this writing.

Summary:

This post shows you how to immediately get the latest version of MariaDB when they become available. Ubuntu will eventually include the latest version of the package in its repository, but might not be immediate, except for security reasons.

So, if you want to always install the latest stable or development versions of MariaDB, use the steps above to add its repository to Ubuntu and install from there.

thanks!

You may also like post below: