How To Install lua-sql-mysql on Fedora 36

In this tutorial we learn how to install lua-sql-mysql in Fedora 36. lua-sql-mysql is MySQL database connectivity for the Lua programming language

Introduction

In this tutorial we learn how to install lua-sql-mysql on Fedora 36.

What is lua-sql-mysql

LuaSQL is a simple interface from Lua to a DBMS. This package provides access to MySQL databases.

We can use yum or dnf to install lua-sql-mysql on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install lua-sql-mysql.

Install lua-sql-mysql on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install lua-sql-mysql using dnf by running the following command:

sudo dnf -y install lua-sql-mysql

Install lua-sql-mysql on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install lua-sql-mysql using yum by running the following command:

sudo yum -y install lua-sql-mysql

How To Uninstall lua-sql-mysql on Fedora 36

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

sudo dnf remove lua-sql-mysql

lua-sql-mysql Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/91
/usr/lib/.build-id/91/0c878684d18248b0eb0b465f6159a2c55e36e9
/usr/lib64/lua/5.4/luasql
/usr/lib64/lua/5.4/luasql/mysql.so

References

Summary

In this tutorial we learn how to install lua-sql-mysql on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).