Files
hugo/docs/content/en/_common/installation/04-build-from-source.md
T
2026-05-21 12:22:49 +02:00

1.1 KiB

_comment
_comment
Do not remove front matter.

Build from source

To build Hugo from source you must install:

  1. Git
  2. Go version 1.25.0 or later

Standard edition

To build and install the standard edition:

CGO_ENABLED=0 go install github.com/gohugoio/hugo@latest

Deploy edition

{{< new-in v0.159.2 />}}

To build and install the deploy edition:

CGO_ENABLED=0 go install -tags withdeploy github.com/gohugoio/hugo@latest

Extended edition

To build and install the extended edition, first install a C compiler such as GCC or Clang and then run the following command:

CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest

Extended/deploy edition

To build and install the extended/deploy edition, first install a C compiler such as GCC or Clang and then run the following command:

CGO_ENABLED=1 go install -tags extended,withdeploy github.com/gohugoio/hugo@latest