Unload modules
From ALICE Documentation
Unload modules
The command module unload
“un-loads” a module. For the above example:
[me@nodelogin01 ~]$ module unload Python/3.7.2-GCCcore-8.2.0 [me@nodelogin01 ~]$ module list Currently Loaded Modules: 1) shared 5) GCCcore/8.2.0 9) libreadline/8.0-GCCcore-8.2.0 13) GMP/6.1.2-GCCcore-8.2.0 2) DefaultModules 6) bzip2/1.0.6-GCCcore-8.2.0 10) Tcl/8.6.9-GCCcore-8.2.0 14) libffi/3.2.1-GCCcore-8.2.0 3) gcc/8.2.0 7) zlib/1.2.11-GCCcore-8.2.0 11) SQLite/3.27.2-GCCcore-8.2.0 4) slurm/18.08.4 8) ncurses/6.1-GCCcore-8.2.0 12) XZ/5.2.4-GCCcore-8.2.0
Important: Currently, unloading a module does not unload its dependencies (as you can see from the above output).
If you want to remove all the modules that are currently loaded, you can use the command module purge
:
[me@nodelogin01 ~]$ module purge [me@nodelogin01 ~]$ module list No modules loaded
Note that this command will also unload the modules loaded by default on login including Slurm. You can either manually load the modules back or source your bashrc with source ~/.bashrc
.