# lego を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

lego のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:lego
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install lego
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lego
```

  証拠: MacPorts ports tree: security/lego/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add lego
```

  証拠: Alpine Linux edge package indexes: lego from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install lego
```

  証拠: Debian stable package indexes: lego from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install lego
```

  証拠: Fedora Rawhide package metadata: lego from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#lego
```

  証拠: nixpkgs package indexes: pkgs/by-name/le/lego/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S lego
```

  証拠: Arch Linux sync databases: lego from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install lego
```

  証拠: openSUSE Tumbleweed package metadata: lego from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/lego
```

  証拠: Scoop official bucket manifest trees: bucket/lego.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GoACME.lego -e
```

  証拠: Windows Package Manager source index: GoACME.lego from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:lego
- **パッケージマネージャ:** Homebrew
- **バージョン:** 5.3.1
- **ソース概要:** Let's Encrypt client and ACME library
- **ホームページ:** <https://go-acme.github.io/lego/>
- **リポジトリ:** <https://github.com/go-acme/lego>
- **最終更新:** 2026-07-26T13:41:01+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- lego (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 5.3.1
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://deps.dev/go/github.com%2Fgo-acme%2Flego/v2.7.2%2Bincompatible>
- <https://github.com/advisories/GHSA-q82r-2j7m-9rv4>
- <https://github.com/go-acme/lego>
- <https://github.com/go-acme/lego/discussions/1914>
- <https://github.com/go-acme/lego/releases>
- <https://go-acme.github.io/lego/>
- <https://go-acme.github.io/lego/dns/>
- <https://www.rfc-editor.org/rfc/rfc8555>


## セキュリティノート

lego に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

- Debian apt - lego - 4.9.1-2: normalized package name match | Debian stable package indexes: lego from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Let's Encrypt client | https://github.com/go-acme/lego
- Nix - lego: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/lego/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lego - 4.9.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: lego from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Let's Encrypt client | https://github.com/go-acme/lego
- apk - lego - 4.35.2-r2: normalized package name match | Alpine Linux edge package indexes: lego from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Let's Encrypt client and ACME library written in Go | https://github.com/go-acme/lego
- apk - lego-doc - 4.35.2-r2: normalized package name match | Alpine Linux edge package indexes: lego-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Let's Encrypt client and ACME library written in Go (documentation) | https://github.com/go-acme/lego
- dnf - lego - 5.3.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: lego from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Let's Encrypt/ACME client written in Go | https://github.com/go-acme/lego
- pacman - lego - 5.3.1-1: normalized package name match | Arch Linux sync databases: lego from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Lets Encrypt client and ACME library | https://go-acme.github.io/lego
- zypper - lego - 5.3.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: lego from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Let's Encrypt/ACME client and library written in Go | https://github.com/go-acme/lego
- MacPorts - lego: normalized package name match | MacPorts ports tree: security/lego/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/lego: normalized package name match | Scoop official bucket manifest trees: bucket/lego.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - GoACME.lego: normalized package name match | Windows Package Manager source index: GoACME.lego from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/lego.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lego.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
