macOS
brew install elan-initlocal Homebrew formula metadata
sudo port install leanMacPorts ports tree · math/lean/Portfile · 来源: api.github.com
安装
brew install elan-initlocal Homebrew formula metadata
sudo port install leanMacPorts ports tree · math/lean/Portfile · 来源: api.github.com
nix profile install nixpkgs#elannixpkgs package indexes · pkgs/by-name/el/elan/package.nix · 来源: api.github.com
scoop install main/elanScoop official bucket manifest trees · bucket/elan.json · 来源: api.github.com
winget install --id Lean.Elan -eWindows Package Manager source index · Lean.Elan · 来源: cdn.winget.microsoft.com
概览
Lean Theorem Prover installer and version manager
历史
elan is the Lean theorem prover toolchain manager. It installs Lean toolchains and places proxy binaries such as `lean`, `lake`, and `elan` on PATH so a project can select the compiler version declared in its `lean-toolchain` file.
The elan repository was created in April 2018 as Lean's answer to language-specific version managers. Its README explicitly describes the implementation as a fork of rustup, adapted from Rust's toolchain model to Lean's compiler, package manager, and release infrastructure.
The design followed Lean's project-local workflow: a repository can commit a `lean-toolchain` file, and elan will automatically select and download the required Lean version when `lean` or `lake` is invoked.
elan became central to modern Lean usage because Lean projects often depend on precise compiler versions, especially around Lean 4 nightly and stable releases. The Lean reference manual documents elan as the standard way to manage installed toolchains, select defaults, and override versions per project.
Its package adoption is practical rather than flashy: package managers distribute `elan-init`, while the installed proxies expose Lean, Lake, and related tools under their usual command names.
Typical usage starts with the `elan-init` installer, which installs into `~/.elan` by default and can update shell startup files. After installation, `elan show`, `elan default`, and project-local `lean-toolchain` files control which Lean version is active.
For package maintainers, elan matters because a single package can provide a family of executables while deferring the actual Lean compiler download until a project requests a specific toolchain.
elan is a clean example of the rustup pattern spreading to another language ecosystem: a tiny manager package, shim executables, per-project version files, and lazy toolchain installation. That makes it especially interesting in package-manager databases because the package name `elan-init` is only the installer face of a larger language runtime workflow.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.
lean-toolchain可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
elan | cli | 全局可执行文件 | |
elan-init | cli | 全局可执行文件 | |
lake | cli | 全局可执行文件 | |
lean | cli | 全局可执行文件 | |
leanc | cli | 全局可执行文件 | |
leanchecker | cli | 全局可执行文件 | |
leanmake | cli | 全局可执行文件 | |
leanpkg | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/leanprover/elan
安装元数据
| 软件包键 | brew:elan-init |
|---|---|
| 版本 | 4.2.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/elan-init |
| 主页 | https://github.com/leanprover/elan |
| 仓库 | https://github.com/leanprover/elan |
| 上游文档 | https://github.com/leanprover/elan#readme |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/leanprover/elan/archive/refs/tags/v4.2.3.tar.gz |
| 最后更新 | 2026-06-13T01:24:10+02:00 |
| Pulse | updated |
| 依赖 | coreutils, gmp |
| 构建依赖 | pkgconf, rust |
| macOS 提供的库 | bzip2, curl |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | elan-init |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
lean
sudo port install leanelan 3.1.1-6
tool for managing installations of the Lean theorem prover
https://github.com/leanprover/elan
sudo apt install elanelan
nix profile install nixpkgs#elanlean
nix profile install nixpkgs#leanelan 3.1.0-1build2
tool for managing installations of the Lean theorem prover
https://github.com/leanprover/elan
sudo apt install elanmain/elan
scoop install main/elanLean.Elan
winget install --id Lean.Elan -eLean.Lean
winget install --id Lean.Lean -eMPI.ELAN
winget install --id MPI.ELAN -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.