Depending on the used platform, there are different ways to install Hugo.
Installing Hugo to Linux
There are different alternatives to the installation, but it most often makes the most sense to use the pre-compiled version.
Installing Hugo to Linux with Snap
Simplest way is to use Snap packages for installation.
sudo snap install hugo
Updating to the latest version with Snap
sudo snap refresh hugo
Installing Hugo to macOS
For macOS, it makes sense to install Hugo from Homebrew package management:
brew update && brew install hugo