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.
- Go to the Hugo releases page
- Click “show all assets”
- Copy the URL for the
hugo_extended_{version}_Linux-64bit.tar.gzversion cdto wherever you will download itwget {url}tar -xsf hugo_{version}_Linux-64bit.tar.gzmv hugo /root/.local/bin/- Rebuild the site
- 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.