How To Install mariadb-connector-c on AlmaLinux 8
Introduction
In this tutorial we learn how to install mariadb-connector-c
on AlmaLinux 8.
What is mariadb-connector-c
The MariaDB Native Client library (C driver) is used to connect applications developed in C/C++ to MariaDB and MySQL databases.
We can use yum
or dnf
to install mariadb-connector-c
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mariadb-connector-c.
Install mariadb-connector-c 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-c
using dnf
by running the following command:
sudo dnf -y install mariadb-connector-c
Install mariadb-connector-c 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-c
using yum
by running the following command:
sudo yum -y install mariadb-connector-c
How To Uninstall mariadb-connector-c on AlmaLinux 8
To uninstall only the mariadb-connector-c
package we can use the following command:
sudo dnf remove mariadb-connector-c
References
Summary
In this tutorial we learn how to install mariadb-connector-c
on AlmaLinux 8 using yum and dnf.