How to install Hugo on Windows, Mac, and Linux?
First published: Wednesday, July 16, 2025 | Last updated: Wednesday, July 16, 2025Follow these straightforward steps to install Hugo on Windows, Mac, and Linux operating systems for building static websites.
What is Hugo?
Hugo is one of the most popular open source static site generators. With its impressive speed and flexibility, Hugo makes building static websites easy. Written in Go, it is optimized for performance and designed for adaptability. Thanks to its advanced templating system and fast asset pipelines, Hugo can render large sites in seconds, often even faster. With support for multiple languages and a powerful taxonomy system, Hugo is widely used for creating a variety of websites, including documentation sites, landing pages, corporate sites, government websites, nonprofit platforms, educational sites, news outlets, events, and project pages.
Install Hugo
This knowledge base article will walk you through the process of installing Hugo, a powerful command-line tool that allows you to build stunning static websites with ease. To keep things straightforward and consistent, we recommend using a package manager for your operating system—be it Windows, Mac, or Linux. Once you’ve completed the installation, don’t forget to check your Hugo version to confirm that everything went smoothly. For more in-depth information, be sure to check out the Hugo documentation.
Windows (Chocolatey)
You can use the following commands to install Hugo in the Chocolatey-based Windows operating system.
# Install Hugo.
$ choco install hugo-extended
# Check Hugo version.
$ hugo version
Windows (Scoop)
You can use the following commands to install Hugo in the Scoop-based Windows operating system.
# Install Hugo.
$ scoop install hugo-extended
# Check Hugo version.
$ hugo version
Windows (Winget)
You can use the following commands to install Hugo in the Winget-based Windows operating system.
# Install Hugo.
$ winget install Hugo.Hugo.Extended
# Check Hugo version.
$ hugo version
Mac (MacPorts)
You can use the following commands to install Hugo in the MacPorts-based Mac operating system.
# Install Hugo.
$ sudo port install hugo
# Check Hugo version.
$ hugo version
Mac (Homebrew)
You can use the following commands to install Hugo in the Homebrew-based Mac operating system.
# Install Hugo.
$ brew install hugo
# Check Hugo version.
$ hugo version
Linux (RPM)
You can use the following commands to install Hugo in RPM-based Linux operating systems such as CentOS Linux, Red Hat Linux, Fedora Linux, Amazon Linux, Alma Linux, Rocky Linux, etc., or any other similar equivalents.
# Install Hugo.
$ sudo yum install hugo
# Check Hugo version.
$ hugo version
Linux (Debian)
You can use the following commands to install Hugo in Debian-based Linux operating systems such as Ubuntu Linux, Mint Linux, Kali Linux, Kubuntu Linux, etc., or any other similar equivalents.
AMD64 / X86-64 / X64
# Download Hugo.
$ wget https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-amd64.deb -P /tmp
# Install Hugo.
$ sudo apt install /tmp/hugo_0.145.0_linux-amd64.deb
# Check Hugo version.
$ hugo version
ARM64
# Download Hugo.
$ wget https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-arm64.deb -P /tmp
# Install Hugo.
$ sudo apt install /tmp/hugo_0.145.0_linux-arm64.deb
# Check Hugo version.
$ hugo version