- Visit the link Hugo Releases and download the latest release of hugo for Windows.
- Create a directory named Hugo where you want your program to be installed.
- Create a subdirectory bin and extract the contents of the downloaded file in that.
- For CLI users, navigate to the location of your
hugo.exe
file, then add hugo.exe to PATH using the command
set PATH=%PATH%...\Hugo\bin
where ... is the path to the Hugo directory.
- Search and Open Advanced System Settings.
- Click on the Environment Variables… button on the bottom.
- In the User variables section, find the row that starts with PATH.
- Double-click on PATH.
- Click the New… button.
- Type in the folder where hugo.exe was extracted. The PATH entry should be the folder where Hugo lives and not the binary.
Windows 7 and 8.1 do not include the easy path editor included in Windows 10, so non-technical users on those platforms are advised to install a free third-party path editor like Windows Environment Variables Editor or Path Editor.
- Install the Homebrew utility using the command in macOS Terminal prompt.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Hugo using
brew install hugo
. - You can check if Hugo runs corretly using
hugo version
.
- In any Linux Distribution that supports snap (which can be checked here), hugo can be installed using
$ sudo apt update
$ sudo apt install snapd
$ snap install hugo --channel=extended
- Alternatively, Hugo can be installed from official Hugo debian package using
$ sudo apt-get install hugo
- Hugo can be installed from the Arch Linux community repository using
$ sudo pacman -Syu hugo
- Hugo can be installed from official fedora package for hugo using
$ sudo dnf install hugo
- Hugo can be installed from souls official repository using
$ sudo eopkg install hugo
- Hugo can be installed from its package using
$ doas pkg_add hugo
Hugo is now installed in your sytem and is ready to use