How To Install mysql-libs on Rocky Linux 8

In this tutorial we learn how to install mysql-libs on Rocky Linux 8. mysql-libs is The shared libraries required for MySQL clients

Introduction

In this tutorial we learn how to install mysql-libs on Rocky Linux 8.

What is mysql-libs

The mysql-libs package provides the essential shared libraries for any MySQL client program or interface. You will need to install this package to use any other MySQL package or any clients that need to connect to a MySQL server.

We can use yum or dnf to install mysql-libs on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mysql-libs.

Install mysql-libs on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install mysql-libs

Install mysql-libs on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mysql-libs

How To Uninstall mysql-libs on Rocky Linux 8

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

sudo dnf remove mysql-libs

mysql-libs Package Contents on Rocky Linux 8

/etc/ld.so.conf.d/mysql-x86_64.conf
/usr/lib/.build-id
/usr/lib/.build-id/61
/usr/lib/.build-id/61/42da8498ee055ab0701afc0c07326a09ba3260
/usr/lib64/mysql/libmysqlclient.so.21
/usr/lib64/mysql/libmysqlclient.so.21.1.21

References

Summary

In this tutorial we learn how to install mysql-libs on Rocky Linux 8 using yum and dnf.