2019-03-08 20:47:06 +02:00
---
title: "Installation"
date: 2019-03-03T16:39:46+01:00
weight: 1
draft: false
---
## Binaries
2019-03-11 18:56:48 +02: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.
2019-03-08 20:47:06 +02:00
lego does not assume anything about the location you run it from.
## From Docker
```bash
2019-03-11 18:56:48 +02:00
docker run goacme/lego -h
2019-03-08 20:47:06 +02:00
```
## 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.
2019-07-27 07:08:04 +02:00
- [FreeBSD (Ports) ](https://www.freshports.org/security/lego ):
```bash
cd /usr/ports/security/lego & & make install clean
```
or
```bash
pkg install lego
```
2019-03-08 20:47:06 +02:00
## From sources
2019-08-13 17:07:06 +02:00
Requirements:
2021-02-17 10:02:44 +02:00
- `go` v1.15+
2019-08-13 17:07:06 +02:00
- environment variable: `GO111MODULE=on`
2019-10-18 20:08:13 +02:00
To install the latest development version from sources, just run:
2019-03-08 20:47:06 +02:00
```bash
2020-09-02 03:20:01 +02:00
go get -u github.com/go-acme/lego/v4/cmd/lego
2019-03-08 20:47:06 +02:00
```
2020-05-17 00:57:55 +02:00
or
```bash
git clone git@github.com:go-acme/lego.git
make # tests + doc + build
make build # only build
```