Automic VaultAutomic Vault

brew

使用 Homebrew, apt, Nix, scoop, winget, MacPorts 安装 elan-init

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install elan-init

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install lean

MacPorts ports tree · math/lean/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install elan

Debian stable package indexes · elan · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#elan

nixpkgs package indexes · pkgs/by-name/el/elan/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/elan

Scoop official bucket manifest trees · bucket/elan.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Lean.Elan -e

Windows Package Manager source index · Lean.Elan · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Lean Theorem Prover installer and version manager

命令和别名

  • elan
  • elan-init
  • lake
  • lean
  • leanc
  • leanchecker
  • leanmake
  • leanpkg

历史

项目历史与用法

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.

时间线

  • 2018: GitHub repository created for the Lean toolchain manager.
  • 2023: README examples show Lean 4 nightly toolchains selected by `lean-toolchain`.
  • 2025: v4.0.0 released for the Lean 4 era.
  • 2026: v4.2.x releases continue active maintenance.

Related projects

  • elan is closely related to Lean, Lake, leanpkg, and rustup. Its model also resembles ghcup, pyenv, nvm, and other language version managers, but it is tightly integrated with Lean's official toolchain naming.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:version manager

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
lean-toolchain

可执行文件

已安装的可执行文件

命令类型暴露范围备注
elancli全局可执行文件
elan-initcli全局可执行文件
lakecli全局可执行文件
leancli全局可执行文件
leanccli全局可执行文件
leancheckercli全局可执行文件
leanmakecli全局可执行文件
leanpkgcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.2.3
管理器更新时间2026-06-13
本地数据OK
上游当前
检测到的最新版本v4.2.3

https://github.com/leanprover/elan

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖coreutils, gmp
构建依赖pkgconf, rust
macOS 提供的库bzip2, curl
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameelan-init
Aliases
  • elan
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • lean-cli
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts94%

lean

sudo port install lean
  • installed executable or alias match
  • 匹配方式:Lean
MacPorts ports tree · api.github.com · MacPorts ports tree: math/lean/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

elan 3.1.1-6

tool for managing installations of the Lean theorem prover

https://github.com/leanprover/elan

sudo apt install elan
  • Section: math
  • Architecture: amd64
  • 7 依赖
  • installed executable or alias match
  • 匹配方式:Elan
Debian stable package indexes · deb.debian.org · Debian stable package indexes: elan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

elan

nix profile install nixpkgs#elan
  • installed executable or alias match
  • 匹配方式:Elan
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/el/elan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Nix92%

lean

nix profile install nixpkgs#lean
  • installed executable or alias match
  • 匹配方式:Lean
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/le/lean/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

elan 3.1.0-1build2

tool for managing installations of the Lean theorem prover

https://github.com/leanprover/elan

sudo apt install elan
  • Section: universe/math
  • Architecture: amd64
  • 6 依赖
  • installed executable or alias match
  • 匹配方式:Elan
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: elan from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Scoop92%

main/elan

scoop install main/elan
  • installed executable or alias match
  • 匹配方式:Elan
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/elan.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget92%

Lean.Elan

winget install --id Lean.Elan -e
  • installed executable or alias match
  • 匹配方式:Elan
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Lean.Elan from https://cdn.winget.microsoft.com/cache/source.msix
winget92%

Lean.Lean

winget install --id Lean.Lean -e
  • installed executable or alias match
  • 匹配方式:Lean
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Lean.Lean from https://cdn.winget.microsoft.com/cache/source.msix
winget92%

MPI.ELAN

winget install --id MPI.ELAN -e
  • installed executable or alias match
  • 匹配方式:Elan
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: MPI.ELAN from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment