How To Install lua-dbi on Fedora 36

In this tutorial we learn how to install lua-dbi in Fedora 36. lua-dbi is Database interface library for Lua

Introduction

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

What is lua-dbi

LuaDBI is a database interface library for Lua. It is designed to provide a RDBMS agnostic API for handling database operations. LuaDBI also provides support for prepared statement handles, placeholders and bind parameters for all database operations. Currently LuaDBI supports DB2, Oracle, MySQL, PostgreSQL and SQLite databases with native database drivers.

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

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

sudo dnf -y install lua-dbi

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

sudo yum -y install lua-dbi

How To Uninstall lua-dbi on Fedora 36

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

sudo dnf remove lua-dbi

lua-dbi Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/b6eb624615837fdee5f7cd2fa64019065b6791
/usr/lib/.build-id/41
/usr/lib/.build-id/41/75f81b511ba1de34e45f59910a9ad3909d51ce
/usr/lib/.build-id/74
/usr/lib/.build-id/74/4e51de4308ea7be63020f4920173151f659edb
/usr/lib64/lua/5.4/dbd
/usr/lib64/lua/5.4/dbd/mysql.so
/usr/lib64/lua/5.4/dbd/postgresql.so
/usr/lib64/lua/5.4/dbd/sqlite3.so
/usr/share/doc/lua-dbi
/usr/share/doc/lua-dbi/README.md
/usr/share/licenses/lua-dbi
/usr/share/licenses/lua-dbi/COPYING
/usr/share/lua/5.4/DBI.lua

References

Summary

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