This page looks best with JavaScript enabled

How to update Hugo on Debian

 ·  ☕ 1 min read

This is a post I’m creating about 50% because I want an easy-to-find reference for myself, but maybe someone will find it useful too.

  1. Go to the Hugo releases page
  2. Click “show all assets”
  3. Copy the URL for the hugo_extended_{version}_Linux-64bit.tar.gz version
  4. cd to wherever you will download it
  5. wget {url}
  6. tar -xsf hugo_{version}_Linux-64bit.tar.gz
  7. mv hugo /root/.local/bin/
  8. Rebuild the site
  9. Remove old versions

I prefer to use the non-extended version most of the time, because I rarely need to rebuild CSS. So then repeat steps 3-7 with hugo_{version}_Linux-64bit.tar.gz.

When making a CSS change, repeat steps 6-7 & rebuild with the slower extended version. Then repeat 6-7 again to go back to the faster non-extended version.

Share on

river
WRITTEN BY
River
River is a developer most at home in MediaWiki and known for building Leaguepedia. She likes cats.

What's on this Page