+2 votes
in Databases by (72.7k 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

+1 vote
by (354k points)
selected by
 
Best answer

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.

Related questions

+2 votes
1 answer
+4 votes
1 answer
+1 vote
1 answer
asked Jul 10, 2023 in Databases by phpuser (60.0k points)
+3 votes
1 answer

...