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