How To Install libmariadb3 on Ubuntu 20.04

In this tutorial we learn how to install libmariadb3 on Ubuntu 20.04. libmariadb3 is MariaDB database client library MariaDB database client library

Introduction

In this tutorial we learn how to install libmariadb3 on Ubuntu 20.04.

What is libmariadb3

libmariadb3 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 client library.

Package: libmariadb3 Architecture: amd64 Version: 1:10.3.22-1ubuntu1 Multi-Arch: same Priority: optional Section: universe/libs 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: 525 Depends: mariadb-common, libc6 (>= 2.28), libgnutls30 (>= 3.6.12), zlib1g (>= 1:1.1.4) Conflicts: mariadb-galera-server-10.0 (« 10.0.5), mariadb-galera-server-5.5 (« 5.5.33), mariadb-server-10.0 (« 10.0.5), mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3, mariadb-server-5.5 (« 5.5.33) Breaks: libmariadbclient18 Replaces: libmariadbclient18 Filename: pool/universe/m/mariadb-10.3/libmariadb3_10.3.22-1ubuntu1_amd64.deb Size: 153160 MD5sum: 037a66e4075b49c194db648dff80a912 SHA1: e02c02a9151daebb9761b643ce8d2b4ed4d7e443 SHA256: ea53cbcf1abdae53d75caf9d1ab0262d0713dc03e9aac3ca87c5c0fe996218b4 Homepage: https://mariadb.org/ Description-en: MariaDB database client library 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 client library.

There are three methods to install libmariadb3 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 libmariadb3 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libmariadb3

Install libmariadb3 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmariadb3 using apt by running the following command:

sudo apt -y install libmariadb3

Install libmariadb3 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 libmariadb3 using aptitude by running the following command:

sudo aptitude -y install libmariadb3

How To Uninstall libmariadb3 on Ubuntu 20.04

To uninstall only the libmariadb3 package we can use the following command:

sudo apt-get remove libmariadb3

Uninstall libmariadb3 And Its Dependencies

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

sudo apt-get -y autoremove libmariadb3

Remove libmariadb3 Configurations and Data

To remove libmariadb3 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libmariadb3

Remove libmariadb3 configuration, data, and all of its dependencies

We can use the following command to remove libmariadb3 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmariadb3

References

Summary

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