How To Install mariadb-server-10.3 on Ubuntu 20.04

In this tutorial we learn how to install mariadb-server-10.3 on Ubuntu 20.04. mariadb-server-10.3 is MariaDB database server binaries MariaDB database server binaries

Introduction

In this tutorial we learn how to install mariadb-server-10.3 on Ubuntu 20.04.

What is mariadb-server-10.3

mariadb-server-10.3 is:

MariaDB is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query language in the world. The main goals of MariaDB are speed, robustness and ease of use.

This package includes the server binaries.

Package: mariadb-server-10.3 Architecture: amd64 Version: 1:10.3.22-1ubuntu1 Priority: optional Section: universe/database Source: mariadb-10.3 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian MySQL Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 65255 Provides: virtual-mysql-server Pre-Depends: adduser (>= 3.40), debconf, mariadb-common (>= 1:10.3.22-1ubuntu1) Depends: galera-3 (>= 25.3), gawk, iproute2, libdbi-perl, lsb-base (>= 3.0-10), lsof, mariadb-client-10.3 (>= 1:10.3.22-1ubuntu1), mariadb-server-core-10.3 (>= 1:10.3.22-1ubuntu1), passwd, perl (>= 5.6), psmisc, rsync, socat, debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.29), libgnutls30 (>= 3.6.12), libpam0g (>= 0.99.7.1), libstdc++6 (>= 5.2), zlib1g (>= 1:1.2.0) Recommends: libhtml-template-perl Suggests: mailx, mariadb-test, netcat-openbsd, tinyca Conflicts: mariadb-tokudb-engine-10.0, mariadb-tokudb-engine-10.1, mariadb-tokudb-engine-5.5, mysql-server-core-5.5, mysql-server-core-5.6, mysql-server-core-5.7, mysql-server-core-8.0, virtual-mysql-server Breaks: cqrlog (« 1.9.0-5~), mariadb-galera-server, mariadb-galera-server-10.0, mariadb-galera-server-5.5, mariadb-server-10.0, mariadb-server-10.1, mariadb-server-10.2, mariadb-server-5.5, mariadb-tokudb-engine-10.0, mariadb-tokudb-engine-10.1, mariadb-tokudb-engine-5.5, mysql-client-5.5, mysql-client-5.7, mysql-server-5.5, mysql-server-5.6, mysql-server-5.7, mysql-server-8.0 Replaces: mariadb-galera-server, mariadb-galera-server-10.0, mariadb-galera-server-5.5, mariadb-server-10.0, mariadb-server-10.1, mariadb-server-10.2, mariadb-server-5.5, mariadb-tokudb-engine-10.0, mariadb-tokudb-engine-10.1, mariadb-tokudb-engine-5.5, mysql-client-5.5, mysql-client-5.7, mysql-server-5.5, mysql-server-5.6, mysql-server-5.7, mysql-server-8.0, virtual-mysql-server Filename: pool/universe/m/mariadb-10.3/mariadb-server-10.3_10.3.22-1ubuntu1_amd64.deb Size: 4187660 MD5sum: 5343fb22c603c4740d1a5f3dd9da5522 SHA1: 3fab0f48fef80d54c57f09920fd49b6de1b6479e SHA256: c1e0a14e0a8d046d31d5cfafea936723317b0b4d28ce3f2b328f301b72b2c39b Homepage: https://mariadb.org/ Description-en: MariaDB database server binaries MariaDB is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query language in the world. The main goals of MariaDB are speed, robustness and ease of use.

This package includes the server binaries.

There are three methods to install mariadb-server-10.3 on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install mariadb-server-10.3 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install mariadb-server-10.3 using apt-get by running the following command:

sudo apt-get -y install mariadb-server-10.3

Install mariadb-server-10.3 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mariadb-server-10.3 using apt by running the following command:

sudo apt -y install mariadb-server-10.3

Install mariadb-server-10.3 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install mariadb-server-10.3 using aptitude by running the following command:

sudo aptitude -y install mariadb-server-10.3

How To Uninstall mariadb-server-10.3 on Ubuntu 20.04

To uninstall only the mariadb-server-10.3 package we can use the following command:

sudo apt-get remove mariadb-server-10.3

Uninstall mariadb-server-10.3 And Its Dependencies

To uninstall mariadb-server-10.3 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove mariadb-server-10.3

Remove mariadb-server-10.3 Configurations and Data

To remove mariadb-server-10.3 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge mariadb-server-10.3

Remove mariadb-server-10.3 configuration, data, and all of its dependencies

We can use the following command to remove mariadb-server-10.3 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mariadb-server-10.3

References

Summary

In this tutorial we learn how to install mariadb-server-10.3 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.