Install/update Hugo (static site generator)

I rarely update the hugo binary I use, but when I do this is how:

First. go to https://github.com/gohugoio/hugo/releases and find the latest version number. It’s important to copy it correctly, as the URLs are constructed from it. :mag:

pushd /tmp/ > /dev/null && \
curl -LO https://github.com/gohugoio/hugo/releases/download/v=hugo_version=/hugo_=hugo_version=_Linux-64bit.tar.gz && \
tar -xzf hugo_=hugo_version=_Linux-64bit.tar.gz && \
chmod +x hugo && \
mv hugo -f =install_path= && \
popd > /dev/null && \
which hugo && \
hugo version

That’s my default install path, but I added it as a field in case I need to install in a non-standard location but feel super lazy otherwise… :yawning_face:

Still works:

$ pushd /tmp/ > /dev/null && \
curl -LO https://github.com/gohugoio/hugo/releases/download/v0.149.1/hugo_0.149.1_Linux-64bit.tar.gz && \
tar -xzf hugo_0.149.1_Linux-64bit.tar.gz && \
chmod +x hugo && \
mv hugo -f ~/.local/bin/ && \
popd > /dev/null && \
which hugo && \
hugo version
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 16.9M  100 16.9M    0     0  27.3M      0 --:--:-- --:--:-- --:--:-- 27.3M
~/.local/bin/hugo
hugo v0.149.1-57a784e027a264790ddf36c89b62200525a4561b linux/amd64 BuildDate=2025-09-04T14:04:46Z VendorInfo=gohugoio

I should move this over to the engine, with the other gohugo docs.