Please refer to the Git and Go documentation for installation instructions.
Prebuilt binaries are available for a variety of operating systems and architectures. Visit the latest release page, and scroll down to the Assets section.
Download the archive for the desired edition, operating system, and architecture
Extract the archive
Move the executable to the desired directory
Add this directory to the PATH environment variable
Verify that you have execute permission on the file
Please consult your operating system documentation if you need help setting file permissions or modifying your PATH environment variable.
If you do not see a prebuilt binary for the desired edition, operating system, and architecture, install Hugo using one of the methods described below.
Snap is a free and open source package manager for Linux. Available for most distributions, Snap packages are simple to install and are automatically updated. This will install the extended edition of Hugo:
sudo snap install hugo
Homebrew is a free and open source package manager for macOS and Linux. This will install the extended edition of Hugo:
brew install hugo
Most Linux distributions maintain a repository for commonly installed applications. Please note that these repositories may not contain the latest release.
The install directory is controlled by the GOPATH and GOBIN environment variables. If GOBIN is set, binaries are installed to that directory. If GOPATH is set, binaries are installed to the bin subdirectory of the first directory in the GOPATH list. Otherwise, binaries are installed to the bin subdirectory of the default GOPATH ($HOME/go or %USERPROFILE%\go).
Then build and test:
go install -tags extended github.com/gohugoio/hugo@latest