Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix 安装 idris2

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install idris2

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install idris2

MacPorts ports tree · lang/idris2/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add idris2

Alpine Linux edge package indexes · idris2 · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install idris2

Fedora Rawhide package metadata · idris2 · 来源: dl.fedoraproject.org

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

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

概览

软件包摘要

Pure functional programming language with dependent types

命令和别名

  • idris2

历史

项目历史与用法

Idris 2 is the second major implementation of the Idris dependently typed programming language. It keeps the type-driven programming culture of Idris while changing the core language around Quantitative Type Theory, giving the compiler explicit information about erased, linear, and unrestricted values.

For package users, Idris 2 matters less as a conventional scripting tool and more as a research-grade language runtime that became packaged enough for everyday experimentation: a compiler, REPL, standard libraries, package metadata through .ipkg files, editor integrations, and a small but unusually technical ecosystem.

项目历史

Idris development is led by Edwin Brady at the University of St Andrews, and the Idris site presents the language as a vehicle for type-driven development: types are treated as plans that guide construction of programs. Idris 2 grew out of that project as a new version of the dependently typed language rather than a small revision of Idris 1.

The Idris 2 paper submitted in 2021 describes the language as a new version of Idris with a core based on Quantitative Type Theory. The official migration documentation emphasizes the practical consequence: every variable has a quantity, so the compiler can distinguish erased values, exactly-once values, and ordinary unrestricted values.

The public Idris2 repository records release tags beginning with v0.2.0 in 2020 and continuing through later 0.x releases. The README also points users to Idris 2 talks from the late 2010s, the official documentation, the Pack package manager, curated community libraries, and idris2-lsp.

采用历史

Adoption has centered on the functional programming, dependent-types, theorem-proving, and programming-language-research communities. The project deliberately preserves a path for Idris 1 users through documentation about language differences and book updates, while also advertising Idris 2 specific learning material and talks.

Package-manager adoption reflects that Idris 2 became installable outside its research niche. The supplied package metadata lists Homebrew, Alpine, Fedora, MacPorts, and Nix package names, giving users a route to the compiler without building the full language stack manually.

使用方式

Users run the idris2 compiler and REPL to write dependently typed programs, explore holes interactively, compile programs, and build packages described by .ipkg files. The README describes Pack as the common way to install Idris packages and work with compatible package collections.

The language is commonly used for examples where types express program invariants: length-indexed data, proof-carrying code, safe protocols, and resource-aware APIs. Idris 2's QTT-based quantities make erasure and linear usage visible to programmers instead of leaving them as compiler-only implementation details.

为什么软件包爱好者会关心

Idris 2 is a package-nerd marker for the point where dependently typed programming moved from papers and conference demos into reproducible command-line tooling. Installing it from Homebrew or Nix pulls a language whose central design is tied directly to contemporary type theory.

It is also interesting because its ecosystem has package metadata of its own. The README's .ipkg and Pack discussion makes Idris 2 both a package in Unix package managers and a language with a nested package culture.

时间线

  • 2018: Public Idris 2 talks appear in the official README resource list.
  • 2020: Public Idris2 release tags begin with v0.2.0.
  • 2021: Edwin Brady's Idris 2: Quantitative Type Theory in Practice paper is submitted and appears at ECOOP 2021.
  • 2022: v0.6.0 release tag marks another packaged compiler milestone.
  • 2023: v0.7.0 release tag is recorded in the upstream repository.
  • 2025: v0.8.0 release tag is recorded in the upstream repository.

Related projects

  • Idris 1 is the direct predecessor and remains the context for much of the teaching material, including Type-Driven Development with Idris and the official migration notes.
  • Pack, idris2-pack-db, idris2-lsp, the idris-community organization, and the Idris Zulip form much of the surrounding tooling and community infrastructure.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:programming language

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
idris2cli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本0.8.0
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v0.8.0

https://github.com/idris-lang/Idris2

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

安装元数据

软件包元数据

软件包键brew:idris2
版本0.8.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/idris2
主页https://www.idris-lang.org/
仓库https://github.com/idris-lang/Idris2
上游文档https://idris2.readthedocs.io/en/latest
许可证BSD-3-Clause
源码归档https://github.com/idris-lang/Idris2/archive/refs/tags/v0.8.0.tar.gz
最后更新2026-06-22T14:03:45-07:00
Pulseupdated
依赖chezscheme
构建依赖gmp
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameidris2
Version Scheme0
Revision2
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Nix95%

idris2

nix profile install nixpkgs#idris2
  • normalized package name match
  • 匹配方式:Idris2
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/id/idris2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

idris2 0.8.0-r2

Purely functional programming language with first class types

https://www.idris-lang.org

sudo apk add idris2
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: idris2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Idris2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: idris2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

idris2-api 0.8.0-r2

Idris API for developing support tools (e.g. external code generator)

https://www.idris-lang.org

sudo apk add idris2-api
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: idris2
  • normalized package name match
  • 匹配方式:Idris2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: idris2-api from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

idris2-doc 0.8.0-r2

Purely functional programming language with first class types (documentation)

https://www.idris-lang.org

sudo apk add idris2-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: idris2
  • normalized package name match
  • 匹配方式:Idris2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: idris2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

idris2 0.8.0-5.fc45

Purely functional programming language with first class types

https://www.idris-lang.org

sudo dnf install idris2
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: idris2
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Idris2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: idris2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

idris2-doc 0.8.0-5.fc45

Idris2 documentation

https://www.idris-lang.org

sudo dnf install idris2-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: idris2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Idris2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: idris2-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

idris2-libs 0.8.0-5.fc45

idris2 runtime support library

https://www.idris-lang.org

sudo dnf install idris2-libs
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: idris2
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Idris2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: idris2-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

idris2

sudo port install idris2
  • normalized package name match
  • 匹配方式:Idris2
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/idris2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment