How To Install Lmod on Fedora 36

In this tutorial we learn how to install Lmod in Fedora 36. Lmod is Environmental Modules System in Lua

Introduction

In this tutorial we learn how to install Lmod on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install Lmod.

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

sudo dnf -y install Lmod

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

sudo yum -y install Lmod

How To Uninstall Lmod on Fedora 36

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

sudo dnf remove Lmod

Lmod Package Contents on Fedora 36

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

References

Summary

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