Debian Codegraph @

docs/content/en/installation/macos.md

raw
1 ---
2 title: macOS
3 description: Install Hugo on macOS.
4 categories: []
5 keywords: []
6 weight: 10
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 ## Package managers
16
17 {{% include "/_common/installation/homebrew.md" %}}
18
19 ### MacPorts
20
21 [MacPorts][] is a free and open-source package manager for macOS. To install the extended edition of Hugo:
22
23 ```sh
24 sudo port install hugo
25 ```
26
27 {{% include "/_common/installation/04-build-from-source.md" %}}
28
29 ## Comparison
30
31  |Prebuilt binaries|Package managers|Build from source
32 :--|:--:|:--:|:--:
33 Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
34 Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
35 Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^1]|:heavy_check_mark:
36 Automatic updates?|:x:|:x: [^2]|:x:
37 Latest version available?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
38
39 [^1]: Easy if a previous version is still installed.
40 [^2]: Possible but requires advanced configuration.
41
42 [MacPorts]: https://www.macports.org/