How To Install qt5-qtbase-mysql on Rocky Linux 8

In this tutorial we learn how to install qt5-qtbase-mysql on Rocky Linux 8. qt5-qtbase-mysql is MySQL driver for Qt5’s SQL classes

Introduction

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

What is qt5-qtbase-mysql

MySQL driver for Qt5’s SQL classes.

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

Install qt5-qtbase-mysql 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 qt5-qtbase-mysql using dnf by running the following command:

sudo dnf -y install qt5-qtbase-mysql

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

sudo yum -y install qt5-qtbase-mysql

How To Uninstall qt5-qtbase-mysql on Rocky Linux 8

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

sudo dnf remove qt5-qtbase-mysql

qt5-qtbase-mysql Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/92/2b8daae0f90d64d9205d9ab614227b2834b8a0
/usr/lib/cmake/Qt5Sql/Qt5Sql_QMYSQLDriverPlugin.cmake
/usr/lib/qt5/plugins/sqldrivers/libqsqlmysql.so
/usr/lib/.build-id
/usr/lib/.build-id/f3/26944b7b74464b4d2569053eed88bf6acf69ae
/usr/lib64/cmake/Qt5Sql/Qt5Sql_QMYSQLDriverPlugin.cmake
/usr/lib64/qt5/plugins/sqldrivers/libqsqlmysql.so

References

Summary

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