| 1 |
--- |
| 2 |
title: BSD |
| 3 |
description: Install Hugo on BSD derivatives. |
| 4 |
categories: [] |
| 5 |
keywords: [] |
| 6 |
weight: 40 |
| 7 |
--- |
| 8 |
|
| 9 |
{{% include "/_common/installation/01-editions.md" %}} |
| 10 |
|
| 11 |
{{% include "/_common/installation/02-prerequisites.md" %}} |
| 12 |
|
| 13 |
{{% include "/_common/installation/03-prebuilt-binaries.md" %}} |
| 14 |
|
| 15 |
## Repository packages |
| 16 |
|
| 17 |
Most BSD derivatives maintain a repository for commonly installed applications. Please note that these repositories may not contain the [latest release][]. |
| 18 |
|
| 19 |
### DragonFly BSD |
| 20 |
|
| 21 |
[DragonFly BSD][] includes Hugo in its package repository. To install the extended edition of Hugo: |
| 22 |
|
| 23 |
```sh |
| 24 |
sudo pkg install gohugo |
| 25 |
``` |
| 26 |
|
| 27 |
### FreeBSD |
| 28 |
|
| 29 |
[FreeBSD][] includes Hugo in its package repository. To install the extended edition of Hugo: |
| 30 |
|
| 31 |
```sh |
| 32 |
sudo pkg install gohugo |
| 33 |
``` |
| 34 |
|
| 35 |
### NetBSD |
| 36 |
|
| 37 |
[NetBSD][] includes Hugo in its package repository. To install the extended edition of Hugo: |
| 38 |
|
| 39 |
```sh |
| 40 |
sudo pkgin install go-hugo |
| 41 |
``` |
| 42 |
|
| 43 |
### OpenBSD |
| 44 |
|
| 45 |
[OpenBSD][] includes Hugo in its package repository. This will prompt you to select which edition of Hugo to install: |
| 46 |
|
| 47 |
```sh |
| 48 |
doas pkg_add hugo |
| 49 |
``` |
| 50 |
|
| 51 |
{{% include "/_common/installation/04-build-from-source.md" %}} |
| 52 |
|
| 53 |
## Comparison |
| 54 |
|
| 55 |
|Prebuilt binaries|Repository packages|Build from source |
| 56 |
:--|:--:|:--:|:--: |
| 57 |
Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark: |
| 58 |
Easy to upgrade?|:heavy_check_mark:|varies|:heavy_check_mark: |
| 59 |
Easy to downgrade?|:heavy_check_mark:|varies|:heavy_check_mark: |
| 60 |
Automatic updates?|:x:|varies|:x: |
| 61 |
Latest version available?|:heavy_check_mark:|varies|:heavy_check_mark: |
| 62 |
|
| 63 |
[DragonFly BSD]: https://www.dragonflybsd.org/ |
| 64 |
[FreeBSD]: https://www.freebsd.org/ |
| 65 |
[NetBSD]: https://www.netbsd.org/ |
| 66 |
[OpenBSD]: https://www.openbsd.org/ |
| 67 |
[latest release]: https://github.com/gohugoio/hugo/releases/latest |