lego/docs/content/installation/_index.md

86 lines
1.6 KiB
Markdown
Raw Normal View History

---
title: "Installation"
date: 2019-03-03T16:39:46+01:00
weight: 1
draft: false
---
## Binaries
2019-03-11 16:56:48 +00:00
To get the binary just download the latest release for your OS/Arch from [the release page](https://github.com/go-acme/lego/releases) and put the binary somewhere convenient.
lego does not assume anything about the location you run it from.
## From Docker
```bash
2019-03-11 16:56:48 +00:00
docker run goacme/lego -h
```
## From package managers
2023-08-19 17:03:45 +00:00
- [ArchLinux](https://archlinux.org/packages/extra/x86_64/lego/) (official):
2022-06-16 22:25:42 +00:00
```bash
pacman -S lego
```
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/lego-bin) (official):
```bash
yay -S lego-bin
2022-06-16 22:25:42 +00:00
```
- [Snap](https://snapcraft.io/lego) (official):
```bash
sudo snap install lego
```
2022-06-16 22:25:42 +00:00
- [FreeBSD (Ports)](https://www.freshports.org/security/lego) (unofficial):
2022-06-16 22:25:42 +00:00
```bash
cd /usr/ports/security/lego && make install clean
```
- [Gentoo](https://gitweb.gentoo.org/repo/proj/guru.git/tree/app-crypt/lego) (unofficial):
You can [enable GURU](https://wiki.gentoo.org/wiki/Project:GURU/Information_for_End_Users) repository and then:
```bash
emerge app-crypt/lego
```
- [Homebrew](https://formulae.brew.sh/formula/lego) (unofficial):
```bash
brew install lego
```
2022-06-16 22:25:42 +00:00
or
2022-06-16 22:25:42 +00:00
```bash
pkg install lego
```
## From sources
Requirements:
2024-03-20 19:30:35 +00:00
- go1.22+.
- environment variable: `GO111MODULE=on`
To install the latest version from sources, just run:
```bash
go install github.com/go-acme/lego/v4/cmd/lego@latest
```
or
```bash
git clone git@github.com:go-acme/lego.git
cd lego
make # tests + doc + build
make build # only build
```