Install Latest Hugo on Ubuntu/Debian

Install the latest Hugo Extended on Ubuntu or Debain. This should work on Windows WSL.

wget $(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -oP '"browser_download_url": "\K(.*)hugo_extended(.*)Linux-64bit.deb')
sudo dpkg -i hugo_extended*Linux-64bit.deb

Comments (1)

Stafusa
Saturday, Sep 24, 2022

Hey,

I’m writing to thank you for your one-liner and to give you a heads-up: The filenames seem to have been changed, and you might want to edit Linux-64bit.deb to linux-amd64.deb.

Thank you

Your comment has been submitted and will be published once it has been approved.

OOPS!

Your comment has not been submitted. Please go back and try again. Thank You!

If this error persists, please open an issue by clicking here.

Say something