Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, MacPorts, Nix, pacman, zypper, scoop, winget 安装 lego

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install lego

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install lego

MacPorts ports tree · security/lego/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

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

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

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

Windows

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

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

Windows Package Manager已验证 · 92%
winget install --id GoACME.lego -e

Windows Package Manager source index · GoACME.lego · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Let's Encrypt client and ACME library

历史

项目历史与用法

Lego is an ACME client and Go library for obtaining, renewing, and revoking certificates from Let's Encrypt and other ACME certificate authorities.

项目历史

The project began in 2015, before Let's Encrypt's public beta and before ACME became an RFC. A maintainer discussion explains that lego started around the need to make HTTPS automatic in a Go web-server project, at a time when Certbot still had a different name and ACME client tooling was experimental.

Lego evolved into both a command-line client and an embeddable Go library. Its docs emphasize support for ACME v2/RFC 8555, multiple ACME servers, HTTP-01, DNS-01, TLS-ALPN-01, DNS-PERSIST-01, wildcard and SAN certificates, and a large DNS-provider integration matrix.

采用历史

Lego's package-manager adoption is broad because certificate automation needs simple deployment on servers, containers, NAS devices, and CI hosts. The Homebrew, Debian, Ubuntu, Alpine, Arch, MacPorts, Nix, Scoop, winget, and zypper package presence in the input mirrors that role: it is a practical infrastructure binary rather than a language-only library.

使用方式

Users commonly call `lego run` or `lego renew` with an email, domains, and a challenge method. DNS-01 support is especially important for wildcard certificates and machines that cannot expose HTTP challenges; the docs maintain per-provider credential and environment-variable pages for that integration surface.

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

Lego is package-nerd significant because it turned the messy edge of ACME automation into a portable Go binary with hundreds of provider integrations. It also became a library substrate for other Go programs that wanted certificate automation without shelling out to Certbot.

时间线

  • 2015: The project started before Let's Encrypt's public beta.
  • 2015-12-03: Dependency metadata records lego v0.1.0.
  • 2019-03: RFC 8555 standardized ACME v2.
  • 2024-09-05: The project disclosed GHSA-q82r-2j7m-9rv4 for HTTPS enforcement in ACME API use.
  • 2026-05: Official docs listed more than 200 DNS providers.

Related projects

  • Related ACME clients include Certbot, acme.sh, dehydrated, Caddy's automatic HTTPS stack, Traefik's ACME support, win-acme, and Boulder, the Let's Encrypt CA software. Related standards include ACME RFC 8555 and challenge specifications such as HTTP-01, DNS-01, and TLS-ALPN-01.

安全态势

尚未找到受保护工具覆盖

没有找到 lego 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/go-acme/lego

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

安装元数据

软件包元数据

软件包键brew:lego
版本5.3.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/lego
主页https://go-acme.github.io/lego/
仓库https://github.com/go-acme/lego
上游文档https://go-acme.github.io/lego
许可证MIT
源码归档https://github.com/go-acme/lego/archive/refs/tags/v5.3.1.tar.gz
最后更新2026-07-22T00:16:44Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelego
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%

lego 4.9.1-2

Let's Encrypt client

https://github.com/go-acme/lego

sudo apt install lego
  • Section: devel
  • Architecture: amd64
  • Source Package: golang-github-xenolf-lego
  • 2 依赖
  • normalized package name match
  • 匹配方式:Lego
Debian stable package indexes · deb.debian.org · Debian stable package indexes: lego from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

lego

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

lego 4.9.1-2

Let's Encrypt client

https://github.com/go-acme/lego

sudo apt install lego
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: golang-github-xenolf-lego
  • 2 依赖
  • normalized package name match
  • 匹配方式:Lego
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: lego from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

lego 4.35.2-r1

Let's Encrypt client and ACME library written in Go

https://github.com/go-acme/lego

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

lego-doc 4.35.2-r1

Let's Encrypt client and ACME library written in Go (documentation)

https://github.com/go-acme/lego

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

lego 5.2.2-1

Lets Encrypt client and ACME library

https://go-acme.github.io/lego

sudo pacman -S lego
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Lego
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lego from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

lego 5.2.2-1.1

Let's Encrypt/ACME client and library written in Go

https://github.com/go-acme/lego

sudo zypper install lego
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: lego
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lego
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lego from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

lego

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

main/lego

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

GoACME.lego

winget install --id GoACME.lego -e
  • normalized package name match
  • 匹配方式:Lego
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GoACME.lego 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment