How To Install mariadb-libs on CentOS 7

In this tutorial we learn how to install mariadb-libs on CentOS 7. mariadb-libs is The shared libraries required for MariaDB/MySQL clients

Introduction

In this tutorial we learn how to install mariadb-libs on CentOS 7.

What is mariadb-libs

The mariadb-libs package provides the essential shared libraries for any MariaDB/MySQL client program or interface. You will need to install this package to use any other MariaDB package or any clients that need to connect to a MariaDB/MySQL server. MariaDB is a community developed branch of MySQL. The mariadb-libs package provides the essential shared libraries for any MariaDB/MySQL client program or interface. You will need to install this package to use any other MariaDB package or any clients that need to connect to a MariaDB/MySQL server. MariaDB is a community developed branch of MySQL.

We can use yum or dnf to install mariadb-libs on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install mariadb-libs.

Install mariadb-libs on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mariadb-libs using yum by running the following command:

sudo yum -y install mariadb-libs

Install mariadb-libs on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install mariadb-libs using dnf by running the following command:

sudo dnf -y install mariadb-libs

How To Uninstall mariadb-libs on CentOS 7

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

sudo dnf remove mariadb-libs

References

Summary

In this tutorial we learn how to install mariadb-libs on CentOS 7 using yum and dnf.