# Installer lego avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de lego pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install lego
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lego
```

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

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

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

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

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

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

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

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

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

## Faits du paquet

- **Clé du paquet:** brew:lego
- **Gestionnaire de paquets:** Homebrew
- **Version:** 5.3.1
- **Résumé source:** Let's Encrypt client and ACME library
- **Page d'accueil:** <https://go-acme.github.io/lego/>
- **Dépôt:** <https://github.com/go-acme/lego>
- **Dernière mise à jour:** 2026-07-26T13:41:01+02:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- lego (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 5.3.1
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour lego. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Autres enregistrements de gestionnaires de paquets

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


## Sources

- 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
