# 使用 Homebrew, apt, dnf 安装 lmod

查看 lmod 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:lmod
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lmod
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install lmod
```

  证据: Debian stable package indexes: lmod from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install Lmod
```

  证据: Fedora Rawhide package metadata: Lmod from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:lmod
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/lmod>
- **版本:** 9.3
- **来源摘要:** Lua-based environment modules system to modify PATH variable
- **主页:** <https://lmod.readthedocs.io>
- **仓库:** <https://github.com/TACC/Lmod>
- **上游文档:** <https://lmod.readthedocs.io>
- **许可证:** MIT
- **源码归档:** <https://github.com/TACC/Lmod/archive/refs/tags/9.3.tar.gz>
- **最后更新:** 2026-07-28T15:34:36Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 依赖

- lua@5.4
- tcl-tk

## 构建依赖

- gnu-sed
- luarocks
- pkgconf

## macOS 提供的库

- libxcrypt

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To use Lmod, you should add the init script to the shell you are using. For example, the bash setup script is here: $HOMEBREW_PREFIX/opt/lmod/init/profile and you can source it in your bash setup or link to it. If you use fish, use $HOMEBREW_PREFIX/opt/lmod/init/fish, such as: ln -s $HOMEBREW_PREFIX/opt/lmod/init/fish ~/.config/fish/conf.d/00_lmod.fish
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 9.3
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://github.com/TACC/Lmod
- 检测到的最新版本: 9.3 (当前)

## 安全说明

没有找到 lmod 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lmod
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - lmod - 8.7.60-1: normalized package name match | Debian stable package indexes: lmod from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lua based environment modules | https://www.tacc.utexas.edu/research/tacc-research/lmod/
- Debian apt - lmod-doc - 8.7.60-1: normalized package name match | Debian stable package indexes: lmod-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lua based environment modules (documentation) | https://www.tacc.utexas.edu/research/tacc-research/lmod/
- Ubuntu apt - lmod - 8.6.19-1: normalized package name match | Ubuntu 24.04 LTS package indexes: lmod from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lua based environment modules | https://www.tacc.utexas.edu/tacc-projects/lmod
- Ubuntu apt - lmod-doc - 8.6.19-1: normalized package name match | Ubuntu 24.04 LTS package indexes: lmod-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lua based environment modules (documentation) | https://www.tacc.utexas.edu/tacc-projects/lmod
- dnf - Lmod - 9.2.8-2.fc45: normalized package name match | Fedora Rawhide package metadata: Lmod from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Environmental Modules System in Lua | https://tacc.utexas.edu/research/tacc-research/lmod/


## 相关链接

- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [tcl-tk](https://pkg.so/zh-hans/brew/tcl-tk/) - Runtime dependency declared by Homebrew.
- [lua@5.4](https://pkg.so/zh-hans/brew/lua-5-4/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [gnu-sed](https://pkg.so/zh-hans/brew/gnu-sed/) - Build dependency declared by Homebrew.
- [luarocks](https://pkg.so/zh-hans/brew/luarocks/) - Build dependency declared by Homebrew.
- [git-gui](https://pkg.so/zh-hans/brew/git-gui/) - Local package facts share a topical domain. Shared terms: system, tcl, tcl-tk.
- [lsyncd](https://pkg.so/zh-hans/brew/lsyncd/) - Both packages touch the same language runtime or ecosystem. Shared terms: lua, lua-5-4, system.
- [weechat](https://pkg.so/zh-hans/brew/weechat/) - Both packages touch the same language runtime or ecosystem. Shared terms: lua, tcl, tcl-tk.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
