Update Hugo

Updating Hugo to the latest release or the extended version.

If your current version of Hugo is not the latest, you can manually install the newer or latest version.

Remove Current version of Hugo

sudo apt-get remove --auto-remove hugo

Install Hugo using dpkg utility

Confirm your server architecture

sudo uname -l

Output

X86_64

Go to Hugo release page to see most recent stable release

https://gohugo.io/categories/releases https://github.com/gohugoio/hugo/releases

Get the url of the most recent release and download with wget, example:

wget https://github.com/gohugoio/hugo/releases/download/v0.50/hugo_0.50_Linux-64bit.deb

Use following command to extract the files and install Hugo package (example):

sudo dpkg -i hugo_0.50_Linux-64bit.deb

Run the following to verify installation:

sudo hugo version