Automic VaultAutomic Vault

brew

elan-init を Homebrew, apt, Nix, scoop, winget, MacPorts でインストール

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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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