How To Install mysql-devel on AlmaLinux 8

In this tutorial we learn how to install mysql-devel in AlmaLinux 8. mysql-devel is Files for development of MySQL applications

Introduction

In this tutorial we learn how to install mysql-devel on AlmaLinux 8.

What is mysql-devel

MySQL is a multi-user, multi-threaded SQL database server. This package contains the libraries and header files that are needed for developing MySQL client applications.

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

Install mysql-devel on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install mysql-devel

Install mysql-devel on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mysql-devel

How To Uninstall mysql-devel on AlmaLinux 8

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

sudo dnf remove mysql-devel

References

Summary

In this tutorial we learn how to install mysql-devel on AlmaLinux 8 using yum and dnf.