How To Install luarocks on Fedora 34
Introduction
In this tutorial we learn how to install luarocks
on Fedora 34.
What is luarocks
LuaRocks allows you to install Lua modules as self-contained packages called “rocks”, which also contain version dependency information. This information is used both during installation, so that when one rock is requested all rocks it depends on are installed as well, and at run time, so that when a module is required, the correct version is loaded. LuaRocks supports both local and remote repositories, and multiple local rocks trees.
We can use yum
or dnf
to install luarocks
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install luarocks.
Install luarocks on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install luarocks
using dnf
by running the following command:
sudo dnf -y install luarocks
Install luarocks on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install luarocks
using yum
by running the following command:
sudo yum -y install luarocks
How To Uninstall luarocks on Fedora 34
To uninstall only the luarocks
package we can use the following command:
sudo dnf remove luarocks
luarocks Package Contents on Fedora 34
/etc/luarocks
/etc/luarocks/config-5.4.lua
/usr/bin/luarocks
/usr/bin/luarocks-admin
/usr/lib/luarocks
/usr/lib/luarocks/rocks-5.4
/usr/share/doc/luarocks
/usr/share/doc/luarocks/README.md
/usr/share/licenses/luarocks
/usr/share/licenses/luarocks/COPYING
/usr/share/lua/5.4/luarocks
/usr/share/lua/5.4/luarocks/admin
/usr/share/lua/5.4/luarocks/admin/cache.lua
/usr/share/lua/5.4/luarocks/admin/cmd
/usr/share/lua/5.4/luarocks/admin/cmd/add.lua
/usr/share/lua/5.4/luarocks/admin/cmd/make_manifest.lua
/usr/share/lua/5.4/luarocks/admin/cmd/refresh_cache.lua
/usr/share/lua/5.4/luarocks/admin/cmd/remove.lua
/usr/share/lua/5.4/luarocks/admin/index.lua
/usr/share/lua/5.4/luarocks/argparse.lua
/usr/share/lua/5.4/luarocks/build
/usr/share/lua/5.4/luarocks/build.lua
/usr/share/lua/5.4/luarocks/build/builtin.lua
/usr/share/lua/5.4/luarocks/build/cmake.lua
/usr/share/lua/5.4/luarocks/build/command.lua
/usr/share/lua/5.4/luarocks/build/make.lua
/usr/share/lua/5.4/luarocks/cmd
/usr/share/lua/5.4/luarocks/cmd.lua
/usr/share/lua/5.4/luarocks/cmd/build.lua
/usr/share/lua/5.4/luarocks/cmd/config.lua
/usr/share/lua/5.4/luarocks/cmd/doc.lua
/usr/share/lua/5.4/luarocks/cmd/download.lua
/usr/share/lua/5.4/luarocks/cmd/init.lua
/usr/share/lua/5.4/luarocks/cmd/install.lua
/usr/share/lua/5.4/luarocks/cmd/lint.lua
/usr/share/lua/5.4/luarocks/cmd/list.lua
/usr/share/lua/5.4/luarocks/cmd/make.lua
/usr/share/lua/5.4/luarocks/cmd/new_version.lua
/usr/share/lua/5.4/luarocks/cmd/pack.lua
/usr/share/lua/5.4/luarocks/cmd/path.lua
/usr/share/lua/5.4/luarocks/cmd/purge.lua
/usr/share/lua/5.4/luarocks/cmd/remove.lua
/usr/share/lua/5.4/luarocks/cmd/search.lua
/usr/share/lua/5.4/luarocks/cmd/show.lua
/usr/share/lua/5.4/luarocks/cmd/test.lua
/usr/share/lua/5.4/luarocks/cmd/unpack.lua
/usr/share/lua/5.4/luarocks/cmd/upload.lua
/usr/share/lua/5.4/luarocks/cmd/which.lua
/usr/share/lua/5.4/luarocks/cmd/write_rockspec.lua
/usr/share/lua/5.4/luarocks/core
/usr/share/lua/5.4/luarocks/core/cfg.lua
/usr/share/lua/5.4/luarocks/core/dir.lua
/usr/share/lua/5.4/luarocks/core/manif.lua
/usr/share/lua/5.4/luarocks/core/path.lua
/usr/share/lua/5.4/luarocks/core/persist.lua
/usr/share/lua/5.4/luarocks/core/sysdetect.lua
/usr/share/lua/5.4/luarocks/core/util.lua
/usr/share/lua/5.4/luarocks/core/vers.lua
/usr/share/lua/5.4/luarocks/deplocks.lua
/usr/share/lua/5.4/luarocks/deps.lua
/usr/share/lua/5.4/luarocks/dir.lua
/usr/share/lua/5.4/luarocks/download.lua
/usr/share/lua/5.4/luarocks/fetch
/usr/share/lua/5.4/luarocks/fetch.lua
/usr/share/lua/5.4/luarocks/fetch/cvs.lua
/usr/share/lua/5.4/luarocks/fetch/git.lua
/usr/share/lua/5.4/luarocks/fetch/git_file.lua
/usr/share/lua/5.4/luarocks/fetch/git_http.lua
/usr/share/lua/5.4/luarocks/fetch/git_https.lua
/usr/share/lua/5.4/luarocks/fetch/git_ssh.lua
/usr/share/lua/5.4/luarocks/fetch/hg.lua
/usr/share/lua/5.4/luarocks/fetch/hg_http.lua
/usr/share/lua/5.4/luarocks/fetch/hg_https.lua
/usr/share/lua/5.4/luarocks/fetch/hg_ssh.lua
/usr/share/lua/5.4/luarocks/fetch/sscm.lua
/usr/share/lua/5.4/luarocks/fetch/svn.lua
/usr/share/lua/5.4/luarocks/fs
/usr/share/lua/5.4/luarocks/fs.lua
/usr/share/lua/5.4/luarocks/fs/freebsd.lua
/usr/share/lua/5.4/luarocks/fs/linux.lua
/usr/share/lua/5.4/luarocks/fs/lua.lua
/usr/share/lua/5.4/luarocks/fs/macosx.lua
/usr/share/lua/5.4/luarocks/fs/tools.lua
/usr/share/lua/5.4/luarocks/fs/unix
/usr/share/lua/5.4/luarocks/fs/unix.lua
/usr/share/lua/5.4/luarocks/fs/unix/tools.lua
/usr/share/lua/5.4/luarocks/fs/win32
/usr/share/lua/5.4/luarocks/fs/win32.lua
/usr/share/lua/5.4/luarocks/fs/win32/tools.lua
/usr/share/lua/5.4/luarocks/fun.lua
/usr/share/lua/5.4/luarocks/loader.lua
/usr/share/lua/5.4/luarocks/manif
/usr/share/lua/5.4/luarocks/manif.lua
/usr/share/lua/5.4/luarocks/manif/writer.lua
/usr/share/lua/5.4/luarocks/pack.lua
/usr/share/lua/5.4/luarocks/path.lua
/usr/share/lua/5.4/luarocks/persist.lua
/usr/share/lua/5.4/luarocks/queries.lua
/usr/share/lua/5.4/luarocks/remove.lua
/usr/share/lua/5.4/luarocks/repos.lua
/usr/share/lua/5.4/luarocks/require.lua
/usr/share/lua/5.4/luarocks/results.lua
/usr/share/lua/5.4/luarocks/rockspecs.lua
/usr/share/lua/5.4/luarocks/search.lua
/usr/share/lua/5.4/luarocks/signing.lua
/usr/share/lua/5.4/luarocks/test
/usr/share/lua/5.4/luarocks/test.lua
/usr/share/lua/5.4/luarocks/test/busted.lua
/usr/share/lua/5.4/luarocks/test/command.lua
/usr/share/lua/5.4/luarocks/tools
/usr/share/lua/5.4/luarocks/tools/patch.lua
/usr/share/lua/5.4/luarocks/tools/tar.lua
/usr/share/lua/5.4/luarocks/tools/zip.lua
/usr/share/lua/5.4/luarocks/type
/usr/share/lua/5.4/luarocks/type/manifest.lua
/usr/share/lua/5.4/luarocks/type/rockspec.lua
/usr/share/lua/5.4/luarocks/type_check.lua
/usr/share/lua/5.4/luarocks/upload
/usr/share/lua/5.4/luarocks/upload/api.lua
/usr/share/lua/5.4/luarocks/upload/multipart.lua
/usr/share/lua/5.4/luarocks/util.lua
References
Summary
In this tutorial we learn how to install luarocks
on Fedora 34 using yum and dnf.