The disadvantage is that you need to spend more time managing the setup, which is manageable but requires more time than the preceding two options. The advantage of building from source is that you don’t have to wait for a release to add features or bug fixes. If you don’t want to use brew, then the tarball/binary is a good choice.īuilding from Source. This gives you the flexibility to have multiple versions on your computer. Updates are easy as well: you just repeat the process with the new binary. Downloading and installing from the tarball is also easy, although it requires a few more command line skills than does Homebrew. Package managers work well and they are easy to update. Nevertheless, this is the recommended installation method if you want to work from a stable, widely used source. Releases may lag a few days behind because it has to be coordinated with another team.
#Install docker mac brew install#
The default package will be for the most recent release, so it will not have bug fixes until the next release (i.e., unless you install it with the -HEAD option in Homebrew). Using a package manager is the simplest method and will require the least amount of work to maintain. There are pros and cons to each of the aforementioned methods: You should use the method that works best for your use case. There is no “best” way to install Hugo on your Mac.
#Install docker mac brew how to#
Ideally, you should install it somewhere in your PATH for easy use. This works well for shared hosts and other systems where you don’t have a privileged account. You don’t need to install it into a global location. Once downloaded, the binary can be run from anywhere. Quick Install Binary (Cross-platform)ĭownload the appropriate version for your platform from Hugo Releases.
#Install docker mac brew full#
See for the full set of supported combinations of target operating systems and compilation architectures.
Hugo may also be compiled from source wherever the Go toolchain can run e.g., on other operating systems such as DragonFly BSD, OpenBSD, Plan 9, Solaris, and others.