macOS
brew install moduleslocal Homebrew formula metadata
安装
brew install moduleslocal Homebrew formula metadata
sudo apt install environment-modulesDebian stable package indexes · environment-modules · 来源: deb.debian.org
sudo zypper install ModulesopenSUSE Tumbleweed package metadata · Modules · 来源: download.opensuse.org
概览
Dynamic modification of a user's environment via modulefiles
历史
Environment Modules began in 1991 with John L. Furlani's paper "Modules: Providing a Flexible User Environment," written at Sun Microsystems to solve a practical Unix administration problem: users and admins needed a cleaner way to add, remove, and switch application-specific environment settings without constantly editing shell startup files. The original design wrapped environment changes into named modulefiles and exposed them through a single module command, so software setup could be loaded, unloaded, or swapped during a shell session.
The project moved through several implementations. Project history presented by the Environment Modules maintainers describes versions 1 and 2 under Furlani, version 3.0 under Peter W. Osel and Jens Hamisch, the Linux/GPL 3.1 and 3.2 line under R.K. Owen at NERSC, and the pure Tcl modulecmd.tcl work by Mark Lakata and Kent Mein. Xavier Delaruelle at CEA became project leader in 2017 and led the version 4 and version 5 line based on the Tcl implementation.
Its role is strongest in high-performance computing and multi-user Unix environments. Modulefiles let sites publish many versions of compilers, MPI stacks, libraries, tools, and data endpoints while users keep a consistent command interface across shells. The project documentation shows typical use through commands such as module load, module switch, and module unload, and the HPSF announcement describes the module command as a familiar interface for supercomputer users accessing a software catalog.
Environment Modules shares its niche with Lmod, the Lua-based module implementation that became especially prominent while Environment Modules development was on hiatus. The revived Tcl-based project added collections, dependency handling, advanced version specifiers, module variants, Lmod Tcl modulefile compatibility, Windows shell support, linting, logging, and cache support. In 2025, Modules moved under the High Performance Software Foundation within the Linux Foundation, giving the long-running HPC environment tool a formal neutral governance home.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/environment-modules/initrc/etc/environment-modules/modulespath/etc/environment-modules/siteconfig.tcl/etc/environment-modules/rc~/.modulerc<modulepath>/.modulerc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
add.modules | cli | 全局可执行文件 | |
envml | cli | 全局可执行文件 | |
mkroot | cli | 全局可执行文件 | |
modulecmd | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://modules.sourceforge.net/
安装元数据
| 软件包键 | brew:modules |
|---|---|
| 版本 | 5.6.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/modules |
| 主页 | https://modules.sourceforge.net/ |
| 仓库 | https://github.com/envmodules/modules |
| 上游文档 | https://github.com/envmodules/modules#readme |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://downloads.sourceforge.net/project/modules/Modules/modules-5.6.1/modules-5.6.1.tar.bz2 |
| 最后更新 | 2026-06-22T14:05:31-07:00 |
| Pulse | updated |
| 依赖 | tcl-tk |
| macOS 提供的库 | less |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
| 注意事项 | To activate modules, add the following at the end of your .zshrc: source $HOMEBREW_PREFIX/opt/modules/init/zsh You will also need to restart your terminal for this change to take effect. |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | modules |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
environment-modules 5.5.0-1
Modular system for handling environment variables
http://modules.sourceforge.net/
sudo apt install environment-modulesenvironment-modules 5.4.0-1
Modular system for handling environment variables
http://modules.sourceforge.net/
sudo apt install environment-modulesModules 4.8.0-4.4
Change environment at runtime
http://modules.sourceforge.net/
sudo zypper install ModulesModules-doc 4.8.0-4.4
Documentation for Environment Modules
http://modules.sourceforge.net/
sudo zypper install Modules-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.