How to install Hugo extended on Linux ARM

I installed it.

Here are the steps if someone else wants to install Hugo extended on ARM64 on Ubuntu 20.04

Prerequisite

Compiling requires some packages.

sudo apt-get install build-essential

Also install zip and unzip because its not preinstalled on Ubuntu

sudo apt-get install zip unzip

This goes without saying but make sure to have latest version of golang
I used official install docs for installing golang but there are many other ways.

Download/Install

From official Hugo github release pick latest release and download source.zip.

wget <insert source url here>
unzip <insert zip file path>
cd <go inside the unzipped folder>
go build --tags extended

Now here is the most difficult part Do nothing until its done building. Its very frustrating because you don’t see anything in terminal and feels like something has gone wrong. If something goes wrong then it will print out the error. If nothing is happening then wait for it to finish. I made mistake by doing Ctrl+C the build and cancelling process many times.

Then you will see hugo executable file. Then move it to /usr/local/hugo_extended Then add it to the PATH same way you added golang to the PATH. See the official document for that.

Here is my output

hugo version
Hugo Static Site Generator v0.75.1/extended linux/arm64 BuildDate: unknown

Verify you have extended in the output.

3 Likes