lego/docs/content/installation/_index.md
Dominik Menke 41a9384638 docs: clarify installation-from-source instructions
Using github.com/go-acme/lego/cmd/lego confuses go get. It fetches
github.com/go-acme/lego@v2.7.2+incompatible (among others) and
stumbles over a type error with that version.

Correcting the go get path to github.com/go-acme/lego/v3/cmd/lego
does the right thing.

fixes #993
2019-10-18 20:33:38 +02:00

52 lines
977 B
Markdown

---
title: "Installation"
date: 2019-03-03T16:39:46+01:00
weight: 1
draft: false
---
## Binaries
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
docker run goacme/lego -h
```
## From package managers
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/lego):
```bash
yay -S lego
```
**Note**: only the package manager for Arch Linux is officially supported by the lego team.
- [FreeBSD (Ports)](https://www.freshports.org/security/lego):
```bash
cd /usr/ports/security/lego && make install clean
```
or
```bash
pkg install lego
```
## From sources
Requirements:
- `go` v1.12+
- environment variable: `GO111MODULE=on`
To install the latest development version from sources, just run:
```bash
go get -u github.com/go-acme/lego/v3/cmd/lego
```