How To Install environment-modules.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install environment-modules.x86_64 on Amazon Linux 2.
What is environment-modules.x86_64
The Environment Modules package provides for the dynamic modification of a user’s environment via modulefiles. Each modulefile contains the information needed to configure the shell for an application. Once the Modules package is initialized, the environment can be modified on a per-module basis using the module command which interprets modulefiles. Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH, MANPATH, etc. modulefiles may be shared by many users on a system and users may have their own collection to supplement or replace the shared modulefiles. Modules can be loaded and unloaded dynamically and atomically, in an clean fashion. All popular shells are supported, including bash, ksh, zsh, sh, csh, tcsh, as well as some scripting languages such as perl. Modules are useful in managing different versions of applications. Modules can also be bundled into metamodules that will load an entire suite of different applications. NOTE package to have access to the module alias.
We can use yum to install environment-modules.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install environment-modules.x86_64.
Install environment-modules.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install environment-modules.x86_64 using yum by running the following command:
sudo yum -y install environment-modules.x86_64
How To Uninstall environment-modules.x86_64 on Amazon Linux 2
To uninstall only the environment-modules.x86_64 package we can use the following command:
sudo yum remove environment-modules.x86_64
environment-modules.x86_64 Package Contents on Amazon Linux 2
/etc/modulefiles
/etc/profile.d/modules.csh
/etc/profile.d/modules.sh
/usr/bin/modulecmd
/usr/share/Modules
/usr/share/Modules/bin
/usr/share/Modules/bin/add.modules
/usr/share/Modules/bin/createmodule.py
/usr/share/Modules/bin/createmodule.sh
/usr/share/Modules/bin/mkroot
/usr/share/Modules/init
/usr/share/Modules/init/.modulespath
/usr/share/Modules/init/bash
/usr/share/Modules/init/bash_completion
/usr/share/Modules/init/cmake
/usr/share/Modules/init/csh
/usr/share/Modules/init/ksh
/usr/share/Modules/init/perl.pm
/usr/share/Modules/init/python.py
/usr/share/Modules/init/ruby.rb
/usr/share/Modules/init/sh
/usr/share/Modules/init/tcsh
/usr/share/Modules/init/zsh
/usr/share/Modules/modulefiles
/usr/share/Modules/modulefiles/dot
/usr/share/Modules/modulefiles/module-git
/usr/share/Modules/modulefiles/module-info
/usr/share/Modules/modulefiles/modules
/usr/share/Modules/modulefiles/null
/usr/share/Modules/modulefiles/use.own
/usr/share/doc/environment-modules-3.2.10
/usr/share/doc/environment-modules-3.2.10/LICENSE.GPL
/usr/share/doc/environment-modules-3.2.10/README
/usr/share/doc/environment-modules-3.2.10/TODO
/usr/share/man/man1/module.1.gz
/usr/share/man/man4/modulefile.4.gz
References
Summary
In this tutorial we learn how to install environment-modules.x86_64 on Amazon Linux 2 using yum.