Download MariaDB Latest Versions on Ubuntu 17.04 | 17.10

MariaDB is a drop-in replacement for MySQL database server. It is rapidly replacing MySQL as the default database server for Linux and other opensource systems. This brief tutorial is going to show students and new users how to download and install the latest versions of it on Ubuntu 17.04 | 17.10.

Installing MariaDB on Ubuntu is pretty easy. All one has to do is run the sudo apt-get install command.

However, when you install MariaDB from Ubuntu default software repositories, you probably won’t get the absolute latest. To install the latest you may have to add MariaDB repository to your systems. To do that, follow the guide below.

To add MariaDB repository to Ubuntu, run the commands below to install the repository key to your system.

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8

After adding the repository key above, continue below to add MariaDB repository.

Before adding the repository below, please visit the download page and get the latest (current) version number. At the time of this post, the latest stable version was at 10.2.

When you find the current version number, replace the highlighted number in the command with it, then run the commands.

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"

After that, run the commands below to install the latest version of MariaDB.

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

After that, you should be running the latest version of MariaDB.

Installing MariaDB Development Version

If you prefer the development version of MariaDB, you can install that too. This version isn’t recommended for production environments, but it has the latest and greatest features that are not yet available in the stable version.

For those wanting to try the newest features that are not yet available in the stable version, run the commands below to add the development repository. The development version is always one number above. For example, if the stable version is at 10.2, the development version would be 10.3

To add the repository, run the commands below.

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

After adding the repository, run the commands below to install the development version.

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

This is how to install the latest versions of MariaDB on Ubuntu servers.

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.

You may also like the post below:

Installing Let’s Encrypt Free SSL/TLS Certificate on Nginx

2 Replies to “Download MariaDB Latest Versions on Ubuntu 17.04 | 17.10

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.