How To Install mysql-devel on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install mysql-devel on Rocky Linux 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 Rocky Linux 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 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-devel using dnf by running the following command:

sudo dnf -y install mysql-devel

Install mysql-devel 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-devel using yum by running the following command:

sudo yum -y install mysql-devel

How To Uninstall mysql-devel on Rocky Linux 8

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

sudo dnf remove mysql-devel

mysql-devel Package Contents on Rocky Linux 8

/usr/bin/mysql_config
/usr/bin/mysql_config-64
/usr/include/mysql
/usr/include/mysql/errmsg.h
/usr/include/mysql/field_types.h
/usr/include/mysql/my_command.h
/usr/include/mysql/my_compress.h
/usr/include/mysql/my_list.h
/usr/include/mysql/mysql
/usr/include/mysql/mysql.h
/usr/include/mysql/mysql/client_plugin.h
/usr/include/mysql/mysql/plugin_auth_common.h
/usr/include/mysql/mysql/udf_registration_types.h
/usr/include/mysql/mysql_com.h
/usr/include/mysql/mysql_time.h
/usr/include/mysql/mysql_version.h
/usr/include/mysql/mysqld_error.h
/usr/include/mysql/mysqlx_ername.h
/usr/include/mysql/mysqlx_error.h
/usr/include/mysql/mysqlx_version.h
/usr/lib/.build-id
/usr/lib/.build-id/50/7a609cddc1f95fba9d2fce2044078c6ee1c143
/usr/lib64/mysql/libmysqlclient.so
/usr/lib64/pkgconfig/mysqlclient.pc
/usr/share/aclocal/mysql.m4
/usr/share/man/man1/mysql_config.1.gz

References

Summary

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