# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 hugo

查看 hugo 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:hugo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hugo
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hugo
```

  证据: MacPorts ports tree: www/hugo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add hugo
```

  证据: Alpine Linux edge package indexes: hugo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install hugo
```

  证据: Debian stable package indexes: hugo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install hugo
```

  证据: Fedora Rawhide package metadata: hugo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#hugo
```

  证据: nixpkgs package indexes: pkgs/by-name/hu/hugo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S hugo
```

  证据: Arch Linux sync databases: hugo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install hugo
```

  证据: openSUSE Tumbleweed package metadata: hugo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install hugo
```

  证据: Chocolatey community package catalog: hugo from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','handbrake.install'

- Scoop (92%):

```sh
scoop install main/hugo
```

  证据: Scoop official bucket manifest trees: bucket/hugo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Hugo.Hugo -e
```

  证据: Windows Package Manager source index: Hugo.Hugo from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:hugo
- **软件包管理器:** Homebrew
- **版本:** 0.164.0
- **来源摘要:** Configurable static site generator
- **主页:** <https://gohugo.io/>
- **仓库:** <https://github.com/gohugoio/hugo>
- **最后更新:** 2026-07-27T14:32:27+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hugo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.164.0
## 项目历史与用法

Hugo is a Go-based static site generator and website framework focused on fast builds, flexible content modeling, themes, asset pipelines, and deployable static output. Its official site describes it as one of the most popular open-source static site generators, while the repository README emphasizes speed, flexibility, multilingual sites, taxonomies, themes, and Hugo Modules.

### 项目历史

The gohugoio/hugo repository was created in July 2013, and GitHub Releases metadata records v0.7 on July 5, 2013. The README credits Hugo as built by Bjørn Erik Pedersen, Steve Francia, and contributors in Go, reflecting the project's evolution from a fast static site generator into a broader website framework with modules, asset processing, embedded development server behavior, and multiple build editions.

Hugo grew alongside the Markdown-and-Git static-site culture that valued local builds, reviewable content repositories, and deployment to static hosts. Its Go implementation and prebuilt binaries helped distinguish it from static site generators that required a language runtime and dependency tree on the target machine.

### 采用历史

Hugo's adoption is visible across package-manager coverage and its own community infrastructure. The batch metadata lists Homebrew, Debian, Ubuntu, Fedora, Arch, openSUSE, MacPorts, Nix, Chocolatey, Scoop, winget, and other package entries, while the official site recorded 88,799 GitHub stars as of June 30, 2026 and points users to a forum, themes directory, and documentation repository.

### 使用方式

Users run `hugo` to build static sites from content, templates, data, and assets, and `hugo server` during local development. Project configuration commonly lives in `hugo.toml`, `hugo.yaml`, `hugo.json`, or a `config/` directory, and sites often combine Markdown content, taxonomies, themes, image processing, Sass or Tailwind workflows, and Git-backed deployment.

### 为什么软件包爱好者会关心

For package nerds, Hugo is a flagship example of a cross-platform Go CLI that package managers distribute as a single developer tool with few runtime surprises. It also shows how package-manager installation, upstream binary releases, theme registries, and documentation tooling can reinforce one another for a content-heavy developer ecosystem.

### 时间线

- 2013: gohugoio/hugo repository created and v0.7 release published.
- 2015: v0.15 release published during the project's early expansion.
- 2017: v0.20 release published as Hugo's release stream accelerated.
- 2026: Official site recorded 88,799 GitHub stars as of June 30, 2026.

### Related projects

- Related projects include Go, Markdown, Hugo Modules, Hugo Themes, the Hugo documentation repository, static-site hosts, GitHub Pages-style workflows, Sass, Tailwind CSS, PostCSS, and other static site generators.

### 来源

- Official Hugo site and documentation, repository README, GitHub repository and release metadata, and Homebrew package metadata supplied in the batch input.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./hugo.toml, ./hugo.yaml, ./hugo.json, ./config/
## 其他软件包管理器记录

- Debian apt - hugo - 0.131.0-1: normalized package name match | Debian stable package indexes: hugo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fast and flexible Static Site Generator written in Go | https://gohugo.io/
- Nix - hugo: normalized package name match | nixpkgs package indexes: pkgs/by-name/hu/hugo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - hugo - 0.123.7-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: hugo from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fast and flexible Static Site Generator written in Go | https://gohugo.io/
- apk - hugo - 0.164.0-r0: normalized package name match | Alpine Linux edge package indexes: hugo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast and flexible static site generator written in Go | https://gohugo.io/
- apk - hugo-bash-completion - 0.164.0-r0: normalized package name match | Alpine Linux edge package indexes: hugo-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for hugo | https://gohugo.io/
- apk - hugo-doc - 0.164.0-r0: normalized package name match | Alpine Linux edge package indexes: hugo-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast and flexible static site generator written in Go (documentation) | https://gohugo.io/
- apk - hugo-fish-completion - 0.164.0-r0: normalized package name match | Alpine Linux edge package indexes: hugo-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for hugo | https://gohugo.io/
- apk - hugo-zsh-completion - 0.164.0-r0: normalized package name match | Alpine Linux edge package indexes: hugo-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for hugo | https://gohugo.io/
- dnf - hugo - 0.162.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: hugo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The world’s fastest framework for building websites | https://github.com/gohugoio/hugo
- pacman - hugo - 0.164.0-1: normalized package name match | Arch Linux sync databases: hugo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fast and Flexible Static Site Generator in Go | https://gohugo.io/
- zypper - hugo - 0.164.0-3.1: normalized package name match | openSUSE Tumbleweed package metadata: hugo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Static website generator written in Go | https://github.com/gohugoio/hugo
- zypper - hugo-bash-completion - 0.164.0-3.1: normalized package name match | openSUSE Tumbleweed package metadata: hugo-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for hugo | https://github.com/gohugoio/hugo
- zypper - hugo-zsh-completion - 0.164.0-3.1: normalized package name match | openSUSE Tumbleweed package metadata: hugo-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH Completion for hugo | https://github.com/gohugoio/hugo
- MacPorts - hugo: normalized package name match | MacPorts ports tree: www/hugo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - hugo: normalized package name match | Chocolatey community package catalog: hugo from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','handbrake.install'
- Scoop - main/hugo: normalized package name match | Scoop official bucket manifest trees: bucket/hugo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/hugo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/hugo.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
