Search code examples
linuxvisual-studio-codewindows-subsystem-for-linuxhugo

Hugo version not updating to latest


I am trying to work with the Hugo static site generator.

Problem: Hugo is saying it is updated to the latest version but it is not.

$ hugo version
Hugo Static Site Generator v0.40.1 linux/amd64 BuildDate: 2018-04-25T17:16:11Z

But the latest version is now v0.70.0

System: Windows Subsystem for Linux via the terminal in Visual Studio Code v1.45.0

Any help would be much appreciated thank you all.


Solution

  • If you've installed it via the apt package manager, you might be out of luck there, because the official repositories might not be up to date with the latest version of Hugo.

    To update the repositories and install the latest available version of hugo, try doing

    sudo apt update
    sudo apt install hugo
    

    However, I see it's only getting version 0.6x.

    If you want to use it on Windows, you could try installing it via Chocolatey or Scoop. Both seem to have version 0.70.x in their repositories, but you'd need to install them first, because they're not Windows out-of-the-box software. Not sure if and how it would work if you use it in the WSL, though.

    Otherwise, there's always the good'ol download the binary and save it.