We're going to install to /usr/local/bin
so that all the users on the system have access to it.
1. Navigate to the Hugo GitHub release page and copy the link for the correct version for your scenario.
2. Download
wget https://github.com/gohugoio/hugo/releases/download/v0.83.1/hugo_0.83.1_Linux-64bit.tar.gz
3. Extract the Hugo to /usr/local/bin
.
tar -xvzf hugo_0.83.1_Linux-64bit.tar.gz -C /usr/local/bin/
4. Create symbolic link to your PATH
ln -s /usr/local/bin/hugo /usr/bin/hugo