How To Install mariadb-connector-odbc on Rocky Linux 8

In this tutorial we learn how to install mariadb-connector-odbc on Rocky Linux 8. mariadb-connector-odbc is The MariaDB Native Client library (ODBC driver)

Introduction

In this tutorial we learn how to install mariadb-connector-odbc on Rocky Linux 8.

What is mariadb-connector-odbc

MariaDB Connector/ODBC is a standardized, LGPL licensed database driver using the industry standard Open Database Connectivity (ODBC) API. It supports ODBC Standard 3.5, can be used as a drop-in replacement for MySQL Connector/ODBC, and it supports both Unicode and ANSI modes.

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

Install mariadb-connector-odbc 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 mariadb-connector-odbc using dnf by running the following command:

sudo dnf -y install mariadb-connector-odbc

Install mariadb-connector-odbc 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 mariadb-connector-odbc using yum by running the following command:

sudo yum -y install mariadb-connector-odbc

How To Uninstall mariadb-connector-odbc on Rocky Linux 8

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

sudo dnf remove mariadb-connector-odbc

mariadb-connector-odbc Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/4dc25c5220819b790b144d2d726b47c9964e6a
/usr/lib64/libmaodbc.so
/usr/share/doc/mariadb-connector-odbc
/usr/share/doc/mariadb-connector-odbc/README
/usr/share/licenses/mariadb-connector-odbc
/usr/share/licenses/mariadb-connector-odbc/COPYING

References

Summary

In this tutorial we learn how to install mariadb-connector-odbc on Rocky Linux 8 using yum and dnf.