How To Install Lmod on Rocky Linux 8

In this tutorial we learn how to install Lmod on Rocky Linux 8. Lmod is Environmental Modules System in Lua

Introduction

In this tutorial we learn how to install Lmod on Rocky Linux 8.

What is Lmod

Lmod is a Lua based module system that easily handles the MODULEPATH Hierarchical problem. Environment Modules provide a convenient way to dynamically change the users’ environment through modulefiles. This includes easily adding or removing directories to the PATH environment variable. Modulefiles for library packages provide environment variables that specify where the library and header files can be found.

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

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

sudo dnf -y install Lmod

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

sudo yum -y install Lmod

How To Uninstall Lmod on Rocky Linux 8

To uninstall only the Lmod package we can use the following command:

sudo dnf remove Lmod

Lmod Package Contents on Rocky Linux 8

/etc/modulefiles
/etc/profile.d/00-modulepath.csh
/etc/profile.d/00-modulepath.sh
/etc/profile.d/modules.csh
/etc/profile.d/modules.sh
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/b69a3143c66d2be20f78c08f6258504364f81b
/usr/lib/rpm/macros.d/macros.Lmod
/usr/share/doc/Lmod
/usr/share/doc/Lmod/INSTALL
/usr/share/doc/Lmod/README.md
/usr/share/doc/Lmod/README_lua_modulefiles.txt
/usr/share/licenses/Lmod
/usr/share/licenses/Lmod/License
/usr/share/lmod
/usr/share/lmod/8.2.7
/usr/share/lmod/8.2.7/init
/usr/share/lmod/8.2.7/init/R
/usr/share/lmod/8.2.7/init/bash
/usr/share/lmod/8.2.7/init/cmake
/usr/share/lmod/8.2.7/init/csh
/usr/share/lmod/8.2.7/init/cshrc
/usr/share/lmod/8.2.7/init/env_modules_python.py
/usr/share/lmod/8.2.7/init/env_modules_ruby.rb
/usr/share/lmod/8.2.7/init/fish
/usr/share/lmod/8.2.7/init/fish_tab_completion
/usr/share/lmod/8.2.7/init/fish_tab_completion/module.fish
/usr/share/lmod/8.2.7/init/ksh
/usr/share/lmod/8.2.7/init/lisp
/usr/share/lmod/8.2.7/init/lmod_bash_completions
/usr/share/lmod/8.2.7/init/lmodrc.lua
/usr/share/lmod/8.2.7/init/perl
/usr/share/lmod/8.2.7/init/profile
/usr/share/lmod/8.2.7/init/profile.fish
/usr/share/lmod/8.2.7/init/sh
/usr/share/lmod/8.2.7/init/tcsh
/usr/share/lmod/8.2.7/init/zsh
/usr/share/lmod/8.2.7/lib
/usr/share/lmod/8.2.7/lib/tcl2lua.so
/usr/share/lmod/8.2.7/lib/tcl2lua.so.1
/usr/share/lmod/8.2.7/lib/tcl2lua.so.1.0.1
/usr/share/lmod/8.2.7/libexec
/usr/share/lmod/8.2.7/libexec/CTimer.lua
/usr/share/lmod/8.2.7/libexec/Cache.lua
/usr/share/lmod/8.2.7/libexec/Configuration.lua
/usr/share/lmod/8.2.7/libexec/DirTree.lua
/usr/share/lmod/8.2.7/libexec/Exec.lua
/usr/share/lmod/8.2.7/libexec/FrameStk.lua
/usr/share/lmod/8.2.7/libexec/Hook.lua
/usr/share/lmod/8.2.7/libexec/HookArray.lua
/usr/share/lmod/8.2.7/libexec/LocationT.lua
/usr/share/lmod/8.2.7/libexec/MC_Access.lua
/usr/share/lmod/8.2.7/libexec/MC_CheckSyntax.lua
/usr/share/lmod/8.2.7/libexec/MC_ComputeHash.lua
/usr/share/lmod/8.2.7/libexec/MC_DependencyCk.lua
/usr/share/lmod/8.2.7/libexec/MC_Load.lua
/usr/share/lmod/8.2.7/libexec/MC_MgrLoad.lua
/usr/share/lmod/8.2.7/libexec/MC_Refresh.lua
/usr/share/lmod/8.2.7/libexec/MC_Show.lua
/usr/share/lmod/8.2.7/libexec/MC_Spider.lua
/usr/share/lmod/8.2.7/libexec/MC_Unload.lua
/usr/share/lmod/8.2.7/libexec/MN_Between.lua
/usr/share/lmod/8.2.7/libexec/MN_Exact.lua
/usr/share/lmod/8.2.7/libexec/MN_Latest.lua
/usr/share/lmod/8.2.7/libexec/MN_Match.lua
/usr/share/lmod/8.2.7/libexec/MName.lua
/usr/share/lmod/8.2.7/libexec/MRC.lua
/usr/share/lmod/8.2.7/libexec/MT.lua
/usr/share/lmod/8.2.7/libexec/Master.lua
/usr/share/lmod/8.2.7/libexec/MasterControl.lua
/usr/share/lmod/8.2.7/libexec/ModuleA.lua
/usr/share/lmod/8.2.7/libexec/Options.lua
/usr/share/lmod/8.2.7/libexec/Pkg.lua
/usr/share/lmod/8.2.7/libexec/PkgBase.lua
/usr/share/lmod/8.2.7/libexec/PkgTACC.lua
/usr/share/lmod/8.2.7/libexec/RC2lua.tcl
/usr/share/lmod/8.2.7/libexec/ReadLmodRC.lua
/usr/share/lmod/8.2.7/libexec/RefCount.lua
/usr/share/lmod/8.2.7/libexec/SitePackage.lua
/usr/share/lmod/8.2.7/libexec/Spider.lua
/usr/share/lmod/8.2.7/libexec/StandardPackage.lua
/usr/share/lmod/8.2.7/libexec/Timer.lua
/usr/share/lmod/8.2.7/libexec/Var.lua
/usr/share/lmod/8.2.7/libexec/Version.lua
/usr/share/lmod/8.2.7/libexec/addto
/usr/share/lmod/8.2.7/libexec/clearLMOD_cmd
/usr/share/lmod/8.2.7/libexec/cmdfuncs.lua
/usr/share/lmod/8.2.7/libexec/collectionFileA.lua
/usr/share/lmod/8.2.7/libexec/colorize.lua
/usr/share/lmod/8.2.7/libexec/computeHashSum
/usr/share/lmod/8.2.7/libexec/lmod
/usr/share/lmod/8.2.7/libexec/loadModuleFile.lua
/usr/share/lmod/8.2.7/libexec/ml_cmd
/usr/share/lmod/8.2.7/libexec/modfuncs.lua
/usr/share/lmod/8.2.7/libexec/mrc_funcs.lua
/usr/share/lmod/8.2.7/libexec/mrc_load.lua
/usr/share/lmod/8.2.7/libexec/mrc_sandbox.lua
/usr/share/lmod/8.2.7/libexec/myGlobals.lua
/usr/share/lmod/8.2.7/libexec/pager.lua
/usr/share/lmod/8.2.7/libexec/parseVersion.lua
/usr/share/lmod/8.2.7/libexec/print_os.sh
/usr/share/lmod/8.2.7/libexec/sandbox.lua
/usr/share/lmod/8.2.7/libexec/sh_to_modulefile
/usr/share/lmod/8.2.7/libexec/spider
/usr/share/lmod/8.2.7/libexec/spiderCacheSupport
/usr/share/lmod/8.2.7/libexec/tcl2lua.tcl
/usr/share/lmod/8.2.7/libexec/update_lmod_system_cache_files
/usr/share/lmod/8.2.7/libexec/utils.lua
/usr/share/lmod/8.2.7/messageDir
/usr/share/lmod/8.2.7/messageDir/de.lua
/usr/share/lmod/8.2.7/messageDir/en.lua
/usr/share/lmod/8.2.7/messageDir/es.lua
/usr/share/lmod/8.2.7/messageDir/fr.lua
/usr/share/lmod/8.2.7/messageDir/template.lua
/usr/share/lmod/8.2.7/messageDir/zh.lua
/usr/share/lmod/8.2.7/modulefiles
/usr/share/lmod/8.2.7/modulefiles/Core
/usr/share/lmod/8.2.7/modulefiles/Core/lmod.lua
/usr/share/lmod/8.2.7/modulefiles/Core/settarg.lua
/usr/share/lmod/8.2.7/settarg
/usr/share/lmod/8.2.7/settarg/Bare.lua
/usr/share/lmod/8.2.7/settarg/BaseShell.lua
/usr/share/lmod/8.2.7/settarg/Bash.lua
/usr/share/lmod/8.2.7/settarg/BuildTarget.lua
/usr/share/lmod/8.2.7/settarg/CmdLineOptions.lua
/usr/share/lmod/8.2.7/settarg/Csh.lua
/usr/share/lmod/8.2.7/settarg/ModifyPath.lua
/usr/share/lmod/8.2.7/settarg/Output.lua
/usr/share/lmod/8.2.7/settarg/ProcessModuleTable.lua
/usr/share/lmod/8.2.7/settarg/STT.lua
/usr/share/lmod/8.2.7/settarg/TargValue.lua
/usr/share/lmod/8.2.7/settarg/Version.lua
/usr/share/lmod/8.2.7/settarg/getUname.lua
/usr/share/lmod/8.2.7/settarg/settarg_cmd
/usr/share/lmod/8.2.7/settarg/settarg_rc.lua
/usr/share/lmod/8.2.7/settarg/targ
/usr/share/lmod/8.2.7/settarg/utils.lua
/usr/share/lmod/8.2.7/share
/usr/share/lmod/8.2.7/share/man
/usr/share/lmod/8.2.7/share/man/cat1
/usr/share/lmod/8.2.7/share/man/cat1/module.1
/usr/share/lmod/8.2.7/shells
/usr/share/lmod/8.2.7/shells/Bare.lua
/usr/share/lmod/8.2.7/shells/BaseShell.lua
/usr/share/lmod/8.2.7/shells/Bash.lua
/usr/share/lmod/8.2.7/shells/CMake.lua
/usr/share/lmod/8.2.7/shells/Csh.lua
/usr/share/lmod/8.2.7/shells/Fish.lua
/usr/share/lmod/8.2.7/shells/Lisp.lua
/usr/share/lmod/8.2.7/shells/Perl.lua
/usr/share/lmod/8.2.7/shells/Python.lua
/usr/share/lmod/8.2.7/shells/R.lua
/usr/share/lmod/8.2.7/shells/Ruby.lua
/usr/share/lmod/8.2.7/tools
/usr/share/lmod/8.2.7/tools/Banner.lua
/usr/share/lmod/8.2.7/tools/BeautifulTbl.lua
/usr/share/lmod/8.2.7/tools/ColumnTable.lua
/usr/share/lmod/8.2.7/tools/Cosmic.lua
/usr/share/lmod/8.2.7/tools/Dbg.lua
/usr/share/lmod/8.2.7/tools/MF_Base.lua
/usr/share/lmod/8.2.7/tools/MF_Lua.lua
/usr/share/lmod/8.2.7/tools/MF_TCL.lua
/usr/share/lmod/8.2.7/tools/Optiks.lua
/usr/share/lmod/8.2.7/tools/Optiks_Option.lua
/usr/share/lmod/8.2.7/tools/TermWidth.lua
/usr/share/lmod/8.2.7/tools/base64.lua
/usr/share/lmod/8.2.7/tools/capture.lua
/usr/share/lmod/8.2.7/tools/declare.lua
/usr/share/lmod/8.2.7/tools/deepcopy.lua
/usr/share/lmod/8.2.7/tools/fileOps.lua
/usr/share/lmod/8.2.7/tools/haveTermSupport.lua
/usr/share/lmod/8.2.7/tools/i18n
/usr/share/lmod/8.2.7/tools/i18n/init.lua
/usr/share/lmod/8.2.7/tools/i18n/interpolate.lua
/usr/share/lmod/8.2.7/tools/i18n/plural.lua
/usr/share/lmod/8.2.7/tools/i18n/variants.lua
/usr/share/lmod/8.2.7/tools/i18n/version.lua
/usr/share/lmod/8.2.7/tools/inherits.lua
/usr/share/lmod/8.2.7/tools/lmod_system_execute.lua
/usr/share/lmod/8.2.7/tools/pairsByKeys.lua
/usr/share/lmod/8.2.7/tools/replaceStr.lua
/usr/share/lmod/8.2.7/tools/serializeTbl.lua
/usr/share/lmod/8.2.7/tools/strict.lua
/usr/share/lmod/8.2.7/tools/string_utils.lua
/usr/share/lmod/lmod
/usr/share/modulefiles

References

Summary

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