Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, MacPorts, Nix, pacman, zypper, scoop, chocolatey 安装 leiningen

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install leiningen

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install leiningen

MacPorts ports tree · devel/leiningen/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S leiningen

Arch Linux sync databases · leiningen · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install leiningen

openSUSE Tumbleweed package metadata · leiningen · 来源: download.opensuse.org

Windows

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

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

Chocolatey已验证 · 92%
choco install Lein

Chocolatey community package catalog · Lein · 来源: community.chocolatey.org

概览

软件包摘要

Build tool for Clojure

历史

项目历史与用法

Leiningen is the long-running Clojure build, dependency, REPL, test, packaging, and project automation tool best known by its `lein` command and `project.clj` files.

项目历史

Phil Hagelberg created Leiningen in 2009 to make Clojure project automation less painful than hand-written Maven configuration. The official tagline, 'automating Clojure projects without setting your hair on fire,' captured the design goal: declarative Clojure configuration, automatic dependency resolution, project skeletons, testing, REPL setup, jars, and uberjars from one command-line tool.

The 1.0.0 release on 2009-12-05 already had many features that shaped Clojure projects for years: configurable source, test, and compilation paths in `project.clj`, isolated classloading, Maven-free install behavior, `lein new`, generated POM metadata, test summaries, uberjar output, plugin flexibility, and resources on the classpath. Later releases added Windows support, upgrades, profiles, plugins, deploy workflows, nREPL integration, and ongoing compatibility updates.

采用历史

Leiningen became the default entry point for many Clojure tutorials, libraries, and applications through the 2010s, before and alongside alternatives such as Boot and the official Clojure CLI/deps.edn tooling. Its wide package-manager availability reflects that history: installing `lein` from a system package manager remained a normal way to start working with Clojure projects.

使用方式

Typical users run `lein new`, `lein test`, `lein repl`, `lein run`, `lein jar`, `lein uberjar`, and `lein deploy`, with project settings in `project.clj` and user or system defaults in profiles files. Credentials files under `~/.lein` support publishing workflows such as deploying artifacts to repositories.

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

Leiningen is package-nerd significant because it made Maven-style dependency and artifact workflows feel native to Clojure. It linked Clojure code, Maven repositories, REPL-driven development, project templates, plugins, and uberjar packaging into one memorable command, which shaped how Clojure packages were created and consumed for more than a decade.

时间线

  • 2009-11-17: Leiningen's release history records the early 0.5.0 release date.
  • 2009-12-05: Leiningen 1.0.0 shipped with project.clj paths, isolated classloading, `lein new`, generated POM metadata, test summaries, and uberjar output.
  • 2010-02-16: Leiningen 1.1.0 added `lein upgrade`, dependency exclusions, native-code dependency support, and experimental Windows support.
  • 2012: Leiningen 2-era docs and profiles became central to daily Clojure workflows.
  • 2021-11-11: Leiningen 2.9.8 continued the long maintenance line with dependency-resolution and install fixes.
  • 2020s: The project marked Codeberg as the canonical repository while keeping GitHub pages and docs visible for existing users.

Related projects

  • Related Clojure build and dependency tools include Boot, the official Clojure CLI and deps.edn, tools.build, Maven, Gradle, Clojars, nREPL, REPL-y, and ClojureScript build tooling that often integrated through Leiningen plugins.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:build tool

安装行为

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

建议审查

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

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
project.cljprofiles.clj~/.lein/profiles.clj/etc/leiningen/profiles.clj~/.lein/profiles.d/

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.lein/credentials.clj.gpg~/.lein/credentials.clj

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本2.13.0
管理器更新时间2026-07-13
本地数据OK
上游当前
检测到的最新版本2.13.0

https://github.com/technomancy/leiningen

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

安装元数据

软件包元数据

软件包键brew:leiningen
版本2.13.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/leiningen
主页https://codeberg.org/leiningen/leiningen
仓库https://github.com/technomancy/leiningen
上游文档https://github.com/technomancy/leiningen#readme
许可证EPL-1.0
源码归档https://github.com/technomancy/leiningen/archive/refs/tags/2.13.0.tar.gz
最后更新2026-07-13T09:26:37Z
Pulseupdated
依赖openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明
注意事项Dependencies will be installed to: $HOME/.m2/repository To play around with Clojure run `lein repl` or `lein help`.

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

leiningen 2.10.0-5

Automation tool and dependency manager for Clojure projects

https://leiningen.org

sudo apt install leiningen
  • Section: java
  • Architecture: all
  • Source Package: leiningen-clojure
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Leiningen
Debian stable package indexes · deb.debian.org · Debian stable package indexes: leiningen from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

leiningen

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

leiningen 2.10.0-2

Automation tool and dependency manager for Clojure projects

https://leiningen.org

sudo apt install leiningen
  • Section: universe/java
  • Architecture: all
  • Source Package: leiningen-clojure
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Leiningen
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: leiningen from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

leiningen 2.12.0-r0

Automate Clojure Projects

https://leiningen.org/

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

leiningen-bash-completion 2.12.0-r0

Bash completions for leiningen

https://leiningen.org/

sudo apk add leiningen-bash-completion
  • License: EPL-1.0
  • Architecture: x86_64
  • Source Package: leiningen
  • normalized package name match
  • 匹配方式:Leiningen
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: leiningen-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

leiningen-doc 2.12.0-r0

Automate Clojure Projects (documentation)

https://leiningen.org/

sudo apk add leiningen-doc
  • License: EPL-1.0
  • Architecture: x86_64
  • Source Package: leiningen
  • normalized package name match
  • 匹配方式:Leiningen
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: leiningen-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

leiningen-zsh-completion 2.12.0-r0

Zsh completions for leiningen

https://leiningen.org/

sudo apk add leiningen-zsh-completion
  • License: EPL-1.0
  • Architecture: x86_64
  • Source Package: leiningen
  • normalized package name match
  • 匹配方式:Leiningen
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: leiningen-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

leiningen 2.12.0-1

Automate Clojure projects

https://codeberg.org/leiningen/leiningen

sudo pacman -S leiningen
  • License: EPL-2.0
  • Architecture: any
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Leiningen
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: leiningen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

leiningen 2.12.0-1.2

Automation for Clojure projects

https://leiningen.org/

sudo zypper install leiningen
  • License: EPL-1.0
  • Category: Development/Tools/Building
  • Architecture: noarch
  • Source Package: leiningen
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Leiningen
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: leiningen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

leiningen

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

main/leiningen

scoop install main/leiningen
  • normalized package name match
  • 匹配方式:Leiningen
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/leiningen.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
Chocolatey92%

Lein

choco install Lein
  • installed executable or alias match
  • 匹配方式:Lein
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: Lein from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','kubectx'

来源线索

由仓库数据生成

此页面由 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