Download and Install Hugo on MacOS

Published: 2024-05-12 | Updated: 2024-05-24

This is just a quick post on how to download and install the extended version of Hugo. It seems like every time I go to update to the latest release I also have to go on a search mission to get the job done. This captures all that for my future self.

Oh, and there is also a fix for “macOS cannot verify that this app is free from malware”

  1. Download the latest release from https://github.com/gohugoio/hugo/releases. The extended release for darwin-universal is hidden behind the “Show all 24 assets” link.
  2. In terminal:
cd ~/bin
tar tvf ~/Downloads/the_hugo_archive_tar_gz

and you’ll see

x hugo
x README.md
x LICENSE

Now verify installation and version…

cd ~
which hugo
# ~/bin/hugo
hugo version

…and here’s where MacOS steps into my path with a big “Not So Fast!” If you see a dialog pop up stating

macOS cannot verify that this app is free from malware.

just open up System Settings and look for Privacy & Security. Scroll down. Look for the specific mention of Hugo under the security section, along with a control to click signalling you’ll vouch for this app and to go ahead and allow it to run.

Now that hugo version command should run just fine.

hugo version
# hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended darwin/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=gohugoio

… and done.