+2 votes
in Databases by (14.3k points)

The Ubuntu repository does not have the latest MariaDB 10.4. How can I install the latest version of MariaDB on my Ubuntu machine?

1 Answer

0 votes
by (22.3k points)

Here are the steps to install the latest MariaDB 10.4 on the Ubuntu machine:

  • Go to https://downloads.mariadb.org/mariadb/repositories
  • Choose a Distro (Ubuntu)  -> Choose a Release (your Ubuntu release) -> Choose a Version (your Ubuntu version)Ubuntu Mariadb installation
  • The above steps will give you the list of commands that you need to run from your terminal.
  • Here are the commands to run to install MariaDB 10.4 from the MariaDB repository on your Ubuntu system:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.ehv.weppel.nl/mariadb/repo/10.4/ubuntu bionic main'

  • Once the key is imported and the repository added, you can install MariaDB 10.4 from the MariaDB repository with:

sudo apt update
sudo apt install mariadb-server

If the above steps give the error, check the link given in the first step.