How To Install lua-sql on Fedora 36

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

Introduction

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

What is lua-sql

LuaSQL is a simple interface from Lua to a DBMS. This package of LuaSQL supports MySQL, SQLite and PostgreSQL databases. You can execute arbitrary SQL statements and it allows for retrieving results in a row-by-row cursor fashion.

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

Install lua-sql 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 using dnf by running the following command:

sudo dnf -y install lua-sql

Install lua-sql 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 using yum by running the following command:

sudo yum -y install lua-sql

How To Uninstall lua-sql on Fedora 36

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

sudo dnf remove lua-sql

lua-sql Package Contents on Fedora 36

/usr/share/doc/lua-sql
/usr/share/doc/lua-sql/README
/usr/share/licenses/lua-sql
/usr/share/licenses/lua-sql/doc.css
/usr/share/licenses/lua-sql/license.html
/usr/share/licenses/lua-sql/luasql.png

References

Summary

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