How To Install lua-posix on Rocky Linux 8

In this tutorial we learn how to install lua-posix on Rocky Linux 8. lua-posix is A POSIX library for Lua

Introduction

In this tutorial we learn how to install lua-posix on Rocky Linux 8.

What is lua-posix

This is a POSIX library for Lua which provides access to many POSIX features to Lua programs.

We can use yum or dnf to install lua-posix on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lua-posix.

Install lua-posix on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install lua-posix

Install lua-posix on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install lua-posix

How To Uninstall lua-posix on Rocky Linux 8

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

sudo dnf remove lua-posix

lua-posix Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/f253223256298bbd50b7ebded3691c5f838019
/usr/lib64/lua/5.3/posix.so
/usr/share/doc/lua-posix
/usr/share/doc/lua-posix/AUTHORS
/usr/share/doc/lua-posix/ChangeLog
/usr/share/doc/lua-posix/NEWS
/usr/share/doc/lua-posix/README
/usr/share/doc/luaposix
/usr/share/doc/luaposix/classes
/usr/share/doc/luaposix/classes/posix.curses.chstr.html
/usr/share/doc/luaposix/classes/posix.curses.window.html
/usr/share/doc/luaposix/examples
/usr/share/doc/luaposix/examples/curses.lua.html
/usr/share/doc/luaposix/examples/dir.lua.html
/usr/share/doc/luaposix/examples/fork.lua.html
/usr/share/doc/luaposix/examples/fork2.lua.html
/usr/share/doc/luaposix/examples/getopt.lua.html
/usr/share/doc/luaposix/examples/glob.lua.html
/usr/share/doc/luaposix/examples/limit.lua.html
/usr/share/doc/luaposix/examples/lock.lua.html
/usr/share/doc/luaposix/examples/netlink-uevent.lua.html
/usr/share/doc/luaposix/examples/ping.lua.html
/usr/share/doc/luaposix/examples/poll.lua.html
/usr/share/doc/luaposix/examples/signal.lua.html
/usr/share/doc/luaposix/examples/socket.lua.html
/usr/share/doc/luaposix/examples/termios.lua.html
/usr/share/doc/luaposix/examples/tree.lua.html
/usr/share/doc/luaposix/index.html
/usr/share/doc/luaposix/ldoc.css
/usr/share/doc/luaposix/modules
/usr/share/doc/luaposix/modules/posix.ctype.html
/usr/share/doc/luaposix/modules/posix.curses.html
/usr/share/doc/luaposix/modules/posix.dirent.html
/usr/share/doc/luaposix/modules/posix.errno.html
/usr/share/doc/luaposix/modules/posix.fcntl.html
/usr/share/doc/luaposix/modules/posix.fnmatch.html
/usr/share/doc/luaposix/modules/posix.getopt.html
/usr/share/doc/luaposix/modules/posix.glob.html
/usr/share/doc/luaposix/modules/posix.grp.html
/usr/share/doc/luaposix/modules/posix.html
/usr/share/doc/luaposix/modules/posix.libgen.html
/usr/share/doc/luaposix/modules/posix.poll.html
/usr/share/doc/luaposix/modules/posix.pwd.html
/usr/share/doc/luaposix/modules/posix.sched.html
/usr/share/doc/luaposix/modules/posix.signal.html
/usr/share/doc/luaposix/modules/posix.stdio.html
/usr/share/doc/luaposix/modules/posix.stdlib.html
/usr/share/doc/luaposix/modules/posix.sys.msg.html
/usr/share/doc/luaposix/modules/posix.sys.resource.html
/usr/share/doc/luaposix/modules/posix.sys.socket.html
/usr/share/doc/luaposix/modules/posix.sys.stat.html
/usr/share/doc/luaposix/modules/posix.sys.statvfs.html
/usr/share/doc/luaposix/modules/posix.sys.time.html
/usr/share/doc/luaposix/modules/posix.sys.times.html
/usr/share/doc/luaposix/modules/posix.sys.utsname.html
/usr/share/doc/luaposix/modules/posix.sys.wait.html
/usr/share/doc/luaposix/modules/posix.syslog.html
/usr/share/doc/luaposix/modules/posix.termio.html
/usr/share/doc/luaposix/modules/posix.time.html
/usr/share/doc/luaposix/modules/posix.unistd.html
/usr/share/doc/luaposix/modules/posix.utime.html
/usr/share/licenses/lua-posix
/usr/share/licenses/lua-posix/COPYING
/usr/share/lua/5.3/curses.lua
/usr/share/lua/5.3/posix
/usr/share/lua/5.3/posix/_argcheck.lua
/usr/share/lua/5.3/posix/compat.lua
/usr/share/lua/5.3/posix/deprecated.lua
/usr/share/lua/5.3/posix/init.lua
/usr/share/lua/5.3/posix/sys.lua
/usr/share/lua/5.3/posix/util.lua

References

Summary

In this tutorial we learn how to install lua-posix on Rocky Linux 8 using yum and dnf.