Skip to main content

Module Software Management

The Module tool is used for managing software environments, enabling users to flexibly switch between different software packages and their versions. It simplifies environment configuration and avoids dependency conflicts between software.

Environment Modules (Module): They represent specific software packages and versions. Once loaded, they modify environment variables (such as PATH, LD_LIBRARY_PATH, etc.) to make the software available.

Module Files (Modulefile): These are the files that define environment modules, specifying information such as software dependencies and paths.

tip

Add necessary module loading commands at the beginning of the script to ensure consistency of the running environment.

Common Commands

View Available Modules

module avail: Lists all available modules, showing the software names and versions.

module spider: Searches for available versions of a specific software and related information.

Load a Module

module load module_name: Loads a module and modifies the environment variables to use the software. For example, module load python/3.8 loads Python version 3.8.

Unload a Module

module unload module_name: Unloads the loaded module and restores the environment variables to their previous state.

View Loaded Modules

module list: Lists all the modules that have been loaded in the current session.

View Detailed Module Information

module show module_name: Displays detailed information about the module, including the modified environment variables, dependencies, etc.