How To Install libmariadb-dev-compat on Ubuntu 20.04

In this tutorial we learn how to install libmariadb-dev-compat on Ubuntu 20.04. libmariadb-dev-compat is MariaDB Connector/C, compatibility symlinks MariaDB Connector/C, compatibility symlinks

Introduction

In this tutorial we learn how to install libmariadb-dev-compat on Ubuntu 20.04.

What is libmariadb-dev-compat

libmariadb-dev-compat 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 compatibility symlinks to allow sources expecting the MySQL client libraries to be built against MariaDB Connector/C.

Package: libmariadb-dev-compat Architecture: amd64 Version: 1:10.3.22-1ubuntu1 Multi-Arch: same Priority: extra Section: universe/libdevel 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: 79 Provides: libmariadb-client-lgpl-dev-compat, libmariadbclient-dev-compat Depends: libmariadb-dev (= 1:10.3.22-1ubuntu1) Conflicts: libmariadb-client-lgpl-dev-compat, libmariadbclient-dev-compat, libmysqlclient-dev Breaks: libmariadb-client-lgpl-dev-compat, libmariadbclient-dev (« 1:10.3), libmariadbclient-dev-compat, libmysqlclient-dev Replaces: libmariadb-client-lgpl-dev-compat, libmariadbclient-dev (« 1:10.3), libmariadbclient-dev-compat, libmysqlclient-dev Filename: pool/universe/m/mariadb-10.3/libmariadb-dev-compat_10.3.22-1ubuntu1_amd64.deb Size: 12888 MD5sum: 1a17e15dd9514454a678f40668957599 SHA1: bb3e984f02284471bc93c88f7db872e462a15c93 SHA256: db89e8e505e20beba343073d44013f3b250db2a6d51e573724d2e5062643bcbc Homepage: https://mariadb.org/ Description-en: MariaDB Connector/C, compatibility symlinks 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 compatibility symlinks to allow sources expecting the MySQL client libraries to be built against MariaDB Connector/C.

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

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

sudo apt-get update

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

sudo apt-get -y install libmariadb-dev-compat

Install libmariadb-dev-compat Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmariadb-dev-compat using apt by running the following command:

sudo apt -y install libmariadb-dev-compat

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

sudo aptitude -y install libmariadb-dev-compat

How To Uninstall libmariadb-dev-compat on Ubuntu 20.04

To uninstall only the libmariadb-dev-compat package we can use the following command:

sudo apt-get remove libmariadb-dev-compat

Uninstall libmariadb-dev-compat And Its Dependencies

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

sudo apt-get -y autoremove libmariadb-dev-compat

Remove libmariadb-dev-compat Configurations and Data

To remove libmariadb-dev-compat configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libmariadb-dev-compat

Remove libmariadb-dev-compat configuration, data, and all of its dependencies

We can use the following command to remove libmariadb-dev-compat configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmariadb-dev-compat

References

Summary

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