How To Install mariadb-connector-odbc on AlmaLinux 8

In this tutorial we learn how to install mariadb-connector-odbc in AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 8

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

sudo dnf remove mariadb-connector-odbc

References

Summary

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