How To Install lua-socket on Fedora 36

In this tutorial we learn how to install lua-socket in Fedora 36. lua-socket is Network support for the Lua language

Introduction

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

What is lua-socket

LuaSocket is a Lua extension library that is composed by two parts core that provides support for the TCP and UDP transport layers, and the set of Lua modules that add support for functionality commonly needed by applications that deal with the Internet. Among the support modules, the most commonly used implement the SMTP, HTTP and FTP. In addition there are modules for MIME, URL handling and LTN12.

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

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

sudo dnf -y install lua-socket

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

sudo yum -y install lua-socket

How To Uninstall lua-socket on Fedora 36

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

sudo dnf remove lua-socket

lua-socket Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/0e8fa372e1f5acf1581fedf228abf9b1f53595
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/c427ab565578899f88851ec3a18fc610cc9165
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/a77fac2158a0b5a126eb0eda822ca61e1c2eb5
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/5b67fba9008923a6abe57c9439cd63d4b015b4
/usr/lib64/lua/5.4/mime
/usr/lib64/lua/5.4/mime/core.so
/usr/lib64/lua/5.4/socket
/usr/lib64/lua/5.4/socket/core.so
/usr/lib64/lua/5.4/socket/serial.so
/usr/lib64/lua/5.4/socket/unix.so
/usr/share/doc/lua-socket
/usr/share/doc/lua-socket/CHANGELOG.md
/usr/share/doc/lua-socket/README.md
/usr/share/doc/lua-socket/dns.html
/usr/share/doc/lua-socket/ftp.html
/usr/share/doc/lua-socket/http.html
/usr/share/doc/lua-socket/index.html
/usr/share/doc/lua-socket/installation.html
/usr/share/doc/lua-socket/introduction.html
/usr/share/doc/lua-socket/ltn12.html
/usr/share/doc/lua-socket/luasocket.png
/usr/share/doc/lua-socket/mime.html
/usr/share/doc/lua-socket/reference.css
/usr/share/doc/lua-socket/reference.html
/usr/share/doc/lua-socket/smtp.html
/usr/share/doc/lua-socket/socket.html
/usr/share/doc/lua-socket/tcp.html
/usr/share/doc/lua-socket/udp.html
/usr/share/doc/lua-socket/url.html
/usr/share/licenses/lua-socket
/usr/share/licenses/lua-socket/LICENSE
/usr/share/lua/5.4/ltn12.lua
/usr/share/lua/5.4/mime.lua
/usr/share/lua/5.4/socket
/usr/share/lua/5.4/socket.lua
/usr/share/lua/5.4/socket/ftp.lua
/usr/share/lua/5.4/socket/headers.lua
/usr/share/lua/5.4/socket/http.lua
/usr/share/lua/5.4/socket/smtp.lua
/usr/share/lua/5.4/socket/tp.lua
/usr/share/lua/5.4/socket/url.lua

References

Summary

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