# lego mit Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für lego in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install lego
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lego
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

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

## Paketfakten

- **Paketschlüssel:** brew:lego
- **Paketmanager:** Homebrew
- **Version:** 5.3.1
- **Quellzusammenfassung:** Let's Encrypt client and ACME library
- **Homepage:** <https://go-acme.github.io/lego/>
- **Repository:** <https://github.com/go-acme/lego>
- **Zuletzt aktualisiert:** 2026-07-26T13:41:01+02:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- lego (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 5.3.1
## Projektgeschichte und Nutzung

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

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

- 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.

### Quellen

- <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>


## Sicherheitshinweise

Für lego wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.


## Andere Paketmanager-Einträge

- 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)


## Quellen

- 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
