How To Install Lmod on Fedora 34
Introduction
In this tutorial we learn how to install Lmod
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install Lmod.
Install Lmod 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 Lmod
using dnf
by running the following command:
sudo dnf -y install Lmod
Install Lmod 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 Lmod
using yum
by running the following command:
sudo yum -y install Lmod
How To Uninstall Lmod on Fedora 34
To uninstall only the Lmod
package we can use the following command:
sudo dnf remove Lmod
Lmod Package Contents on Fedora 34
/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/ca
/usr/lib/.build-id/ca/a8c105390e703728f96079f3e32b0b6ad338a1
/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.4.23
/usr/share/lmod/8.4.23/init
/usr/share/lmod/8.4.23/init/R
/usr/share/lmod/8.4.23/init/bash
/usr/share/lmod/8.4.23/init/cmake
/usr/share/lmod/8.4.23/init/csh
/usr/share/lmod/8.4.23/init/cshrc
/usr/share/lmod/8.4.23/init/env_modules_python.py
/usr/share/lmod/8.4.23/init/env_modules_ruby.rb
/usr/share/lmod/8.4.23/init/fish
/usr/share/lmod/8.4.23/init/fish_tab_completion
/usr/share/lmod/8.4.23/init/fish_tab_completion/module.fish
/usr/share/lmod/8.4.23/init/ksh
/usr/share/lmod/8.4.23/init/ksh_funcs
/usr/share/lmod/8.4.23/init/ksh_funcs/clearLmod
/usr/share/lmod/8.4.23/init/ksh_funcs/clearMT
/usr/share/lmod/8.4.23/init/ksh_funcs/ml
/usr/share/lmod/8.4.23/init/ksh_funcs/module
/usr/share/lmod/8.4.23/init/ksh_funcs/settarg
/usr/share/lmod/8.4.23/init/lisp
/usr/share/lmod/8.4.23/init/lmod_bash_completions
/usr/share/lmod/8.4.23/init/lmodrc.lua
/usr/share/lmod/8.4.23/init/perl
/usr/share/lmod/8.4.23/init/profile
/usr/share/lmod/8.4.23/init/profile.fish
/usr/share/lmod/8.4.23/init/sh
/usr/share/lmod/8.4.23/init/tcsh
/usr/share/lmod/8.4.23/init/zsh
/usr/share/lmod/8.4.23/lib
/usr/share/lmod/8.4.23/lib/tcl2lua.so
/usr/share/lmod/8.4.23/lib/tcl2lua.so.1
/usr/share/lmod/8.4.23/lib/tcl2lua.so.1.0.1
/usr/share/lmod/8.4.23/libexec
/usr/share/lmod/8.4.23/libexec/CTimer.lua
/usr/share/lmod/8.4.23/libexec/Cache.lua
/usr/share/lmod/8.4.23/libexec/Configuration.lua
/usr/share/lmod/8.4.23/libexec/DirTree.lua
/usr/share/lmod/8.4.23/libexec/Exec.lua
/usr/share/lmod/8.4.23/libexec/FrameStk.lua
/usr/share/lmod/8.4.23/libexec/Hook.lua
/usr/share/lmod/8.4.23/libexec/HookArray.lua
/usr/share/lmod/8.4.23/libexec/LocationT.lua
/usr/share/lmod/8.4.23/libexec/MC_Access.lua
/usr/share/lmod/8.4.23/libexec/MC_CheckSyntax.lua
/usr/share/lmod/8.4.23/libexec/MC_ComputeHash.lua
/usr/share/lmod/8.4.23/libexec/MC_DependencyCk.lua
/usr/share/lmod/8.4.23/libexec/MC_Load.lua
/usr/share/lmod/8.4.23/libexec/MC_MgrLoad.lua
/usr/share/lmod/8.4.23/libexec/MC_Refresh.lua
/usr/share/lmod/8.4.23/libexec/MC_Show.lua
/usr/share/lmod/8.4.23/libexec/MC_Spider.lua
/usr/share/lmod/8.4.23/libexec/MC_Unload.lua
/usr/share/lmod/8.4.23/libexec/MN_Between.lua
/usr/share/lmod/8.4.23/libexec/MN_Exact.lua
/usr/share/lmod/8.4.23/libexec/MN_Latest.lua
/usr/share/lmod/8.4.23/libexec/MN_Match.lua
/usr/share/lmod/8.4.23/libexec/MName.lua
/usr/share/lmod/8.4.23/libexec/MRC.lua
/usr/share/lmod/8.4.23/libexec/MT.lua
/usr/share/lmod/8.4.23/libexec/Master.lua
/usr/share/lmod/8.4.23/libexec/MasterControl.lua
/usr/share/lmod/8.4.23/libexec/ModuleA.lua
/usr/share/lmod/8.4.23/libexec/Options.lua
/usr/share/lmod/8.4.23/libexec/Pkg.lua
/usr/share/lmod/8.4.23/libexec/PkgBase.lua
/usr/share/lmod/8.4.23/libexec/PkgTACC.lua
/usr/share/lmod/8.4.23/libexec/RC2lua.tcl
/usr/share/lmod/8.4.23/libexec/ReadLmodRC.lua
/usr/share/lmod/8.4.23/libexec/RefCount.lua
/usr/share/lmod/8.4.23/libexec/SitePackage.lua
/usr/share/lmod/8.4.23/libexec/Spider.lua
/usr/share/lmod/8.4.23/libexec/StandardPackage.lua
/usr/share/lmod/8.4.23/libexec/Timer.lua
/usr/share/lmod/8.4.23/libexec/Var.lua
/usr/share/lmod/8.4.23/libexec/Version.lua
/usr/share/lmod/8.4.23/libexec/addto
/usr/share/lmod/8.4.23/libexec/check_module_tree_syntax
/usr/share/lmod/8.4.23/libexec/clearLMOD_cmd
/usr/share/lmod/8.4.23/libexec/cmdfuncs.lua
/usr/share/lmod/8.4.23/libexec/collectionFileA.lua
/usr/share/lmod/8.4.23/libexec/colorize.lua
/usr/share/lmod/8.4.23/libexec/computeHashSum
/usr/share/lmod/8.4.23/libexec/lmod
/usr/share/lmod/8.4.23/libexec/loadModuleFile.lua
/usr/share/lmod/8.4.23/libexec/ml_cmd
/usr/share/lmod/8.4.23/libexec/modfuncs.lua
/usr/share/lmod/8.4.23/libexec/mrc_funcs.lua
/usr/share/lmod/8.4.23/libexec/mrc_load.lua
/usr/share/lmod/8.4.23/libexec/mrc_sandbox.lua
/usr/share/lmod/8.4.23/libexec/myGlobals.lua
/usr/share/lmod/8.4.23/libexec/pager.lua
/usr/share/lmod/8.4.23/libexec/parseVersion.lua
/usr/share/lmod/8.4.23/libexec/print_os.sh
/usr/share/lmod/8.4.23/libexec/sandbox.lua
/usr/share/lmod/8.4.23/libexec/sh_to_modulefile
/usr/share/lmod/8.4.23/libexec/spider
/usr/share/lmod/8.4.23/libexec/spiderCacheSupport
/usr/share/lmod/8.4.23/libexec/tcl2lua.tcl
/usr/share/lmod/8.4.23/libexec/update_lmod_system_cache_files
/usr/share/lmod/8.4.23/libexec/utils.lua
/usr/share/lmod/8.4.23/messageDir
/usr/share/lmod/8.4.23/messageDir/de.lua
/usr/share/lmod/8.4.23/messageDir/en.lua
/usr/share/lmod/8.4.23/messageDir/es.lua
/usr/share/lmod/8.4.23/messageDir/fr.lua
/usr/share/lmod/8.4.23/messageDir/template.lua
/usr/share/lmod/8.4.23/messageDir/zh.lua
/usr/share/lmod/8.4.23/modulefiles
/usr/share/lmod/8.4.23/modulefiles/Core
/usr/share/lmod/8.4.23/modulefiles/Core/lmod.lua
/usr/share/lmod/8.4.23/modulefiles/Core/settarg.lua
/usr/share/lmod/8.4.23/settarg
/usr/share/lmod/8.4.23/settarg/Bare.lua
/usr/share/lmod/8.4.23/settarg/BaseShell.lua
/usr/share/lmod/8.4.23/settarg/Bash.lua
/usr/share/lmod/8.4.23/settarg/BuildTarget.lua
/usr/share/lmod/8.4.23/settarg/CmdLineOptions.lua
/usr/share/lmod/8.4.23/settarg/Csh.lua
/usr/share/lmod/8.4.23/settarg/ModifyPath.lua
/usr/share/lmod/8.4.23/settarg/Output.lua
/usr/share/lmod/8.4.23/settarg/ProcessModuleTable.lua
/usr/share/lmod/8.4.23/settarg/STT.lua
/usr/share/lmod/8.4.23/settarg/TargValue.lua
/usr/share/lmod/8.4.23/settarg/Version.lua
/usr/share/lmod/8.4.23/settarg/getUname.lua
/usr/share/lmod/8.4.23/settarg/settarg_cmd
/usr/share/lmod/8.4.23/settarg/settarg_rc.lua
/usr/share/lmod/8.4.23/settarg/targ
/usr/share/lmod/8.4.23/settarg/utils.lua
/usr/share/lmod/8.4.23/share
/usr/share/lmod/8.4.23/share/man
/usr/share/lmod/8.4.23/share/man/cat1
/usr/share/lmod/8.4.23/share/man/cat1/module.1
/usr/share/lmod/8.4.23/shells
/usr/share/lmod/8.4.23/shells/Bare.lua
/usr/share/lmod/8.4.23/shells/BaseShell.lua
/usr/share/lmod/8.4.23/shells/Bash.lua
/usr/share/lmod/8.4.23/shells/CMake.lua
/usr/share/lmod/8.4.23/shells/Csh.lua
/usr/share/lmod/8.4.23/shells/Fish.lua
/usr/share/lmod/8.4.23/shells/Lisp.lua
/usr/share/lmod/8.4.23/shells/Perl.lua
/usr/share/lmod/8.4.23/shells/Python.lua
/usr/share/lmod/8.4.23/shells/R.lua
/usr/share/lmod/8.4.23/shells/Ruby.lua
/usr/share/lmod/8.4.23/tools
/usr/share/lmod/8.4.23/tools/Banner.lua
/usr/share/lmod/8.4.23/tools/BeautifulTbl.lua
/usr/share/lmod/8.4.23/tools/ColumnTable.lua
/usr/share/lmod/8.4.23/tools/Cosmic.lua
/usr/share/lmod/8.4.23/tools/Dbg.lua
/usr/share/lmod/8.4.23/tools/MF_Base.lua
/usr/share/lmod/8.4.23/tools/MF_Lua.lua
/usr/share/lmod/8.4.23/tools/MF_TCL.lua
/usr/share/lmod/8.4.23/tools/Optiks.lua
/usr/share/lmod/8.4.23/tools/Optiks_Option.lua
/usr/share/lmod/8.4.23/tools/TermWidth.lua
/usr/share/lmod/8.4.23/tools/base64.lua
/usr/share/lmod/8.4.23/tools/capture.lua
/usr/share/lmod/8.4.23/tools/declare.lua
/usr/share/lmod/8.4.23/tools/deepcopy.lua
/usr/share/lmod/8.4.23/tools/fileOps.lua
/usr/share/lmod/8.4.23/tools/haveTermSupport.lua
/usr/share/lmod/8.4.23/tools/i18n
/usr/share/lmod/8.4.23/tools/i18n/init.lua
/usr/share/lmod/8.4.23/tools/i18n/interpolate.lua
/usr/share/lmod/8.4.23/tools/i18n/plural.lua
/usr/share/lmod/8.4.23/tools/i18n/variants.lua
/usr/share/lmod/8.4.23/tools/i18n/version.lua
/usr/share/lmod/8.4.23/tools/inherits.lua
/usr/share/lmod/8.4.23/tools/lmod_system_execute.lua
/usr/share/lmod/8.4.23/tools/pairsByKeys.lua
/usr/share/lmod/8.4.23/tools/replaceStr.lua
/usr/share/lmod/8.4.23/tools/serializeTbl.lua
/usr/share/lmod/8.4.23/tools/strict.lua
/usr/share/lmod/8.4.23/tools/string_utils.lua
/usr/share/lmod/lmod
/usr/share/modulefiles
References
Summary
In this tutorial we learn how to install Lmod
on Fedora 34 using yum and dnf.