blob: a873b512a4fe51b0a98b9af61bbaabc5caf6393e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
---
title: macOS
description: Install Hugo on macOS.
categories: []
keywords: []
weight: 10
---
## Editions
{{% include "/_common/installation/01-editions.md" %}}
Unless your specific deployment needs require the extended/deploy edition, we recommend the extended edition.
{{% include "/_common/installation/02-prerequisites.md" %}}
{{% include "/_common/installation/03-prebuilt-binaries.md" %}}
## Package managers
{{% include "/_common/installation/homebrew.md" %}}
### MacPorts
[MacPorts] is a free and open-source package manager for macOS. To install the extended edition of Hugo:
```sh
sudo port install hugo
```
[MacPorts]: https://www.macports.org/
{{% include "/_common/installation/04-build-from-source.md" %}}
## Comparison
||Prebuilt binaries|Package managers|Build from source
:--|:--:|:--:|:--:
Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^1]|:heavy_check_mark:
Automatic updates?|:x:|:x: [^2]|:x:
Latest version available?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
[^1]: Easy if a previous version is still installed.
[^2]: Possible but requires advanced configuration.
|