# Install hut with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

CLI tool for sr.ht. Version 0.8.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:hut
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install hut
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hut
```

  Evidence: MacPorts ports tree: devel/hut/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add hut
```

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

- Debian apt (92%):

```sh
sudo apt install hut
```

  Evidence: Debian stable package indexes: hut from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install hut
```

  Evidence: Fedora Rawhide package metadata: hut from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#hut
```

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

- pacman (92%):

```sh
sudo pacman -S hut
```

  Evidence: Arch Linux sync databases: hut from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install hut
```

  Evidence: openSUSE Tumbleweed package metadata: hut from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:hut
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/hut>
- **Version:** 0.8.0
- **Source summary:** CLI tool for sr.ht
- **Homepage:** <https://sr.ht/~xenrox/hut>
- **Repository:** <https://git.sr.ht/~xenrox/hut>
- **Upstream docs:** <https://git.sr.ht/~xenrox/hut/tree/master/item/doc/hut.1.scd>
- **License:** AGPL-3.0-or-later
- **Source archive:** <https://git.sr.ht/~xenrox/hut/archive/v0.8.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- hut (cli)
- hut (alias)

## Build dependencies

- go
- scdoc

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.8.0
- Local data: ok
- Upstream repository: https://sr.ht/~xenrox/hut
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

hut is a command-line client for sr.ht, the SourceHut software forge. It exposes SourceHut services from the shell, including git, builds, tickets, patches, pages, meta/account features, and hub/project views as those APIs became available.

### Project history

The SourceHut project entered public alpha in November 2018 after private development, and hut appeared later as a compact CLI companion for that ecosystem. The hut refs page shows v0.1.0 in March 2022 and a steady sequence of 0.x releases afterward.

Release notes show hut tracking SourceHut's expanding service surface. v0.7.0 added git webhook handling, git setup for send-email configuration, pages ACL handling, multi-resource update commands, and a package-maintainer note for setting the version via linker flags. v0.8.0 added a version command, meta pronouns/avatar handling, hub list/show commands, list and todo preferences, build tag filtering and updating, and instance-origin configuration.

### Adoption history

hut is niche by design: it is most useful to SourceHut users who want forge operations in scripts or terminal workflows. Package metadata lists distribution across Homebrew, Debian, Ubuntu, Fedora-family, Alpine, Arch, Nix, MacPorts, and openSUSE ecosystems, which is broad for a forge-specific CLI.

### How it is used

The tool is used for day-to-day sr.ht work from a terminal: cloning and configuring repositories, submitting or inspecting builds, handling tickets and patches, managing pages, and reading or updating account/project metadata.

### Why package nerds care

hut is significant to SourceHut-oriented package users because it mirrors the forge's API-first, email-friendly culture in a scriptable binary. It is also a good example of a CLI whose package-manager value is higher than its standalone fame: without easy packaging, SourceHut automation stays locked behind manual web/API calls.

### Timeline

- 2018: SourceHut began public alpha.
- 2022: hut v0.1.0 was tagged.
- 2023: v0.3.0 and v0.4.0 releases expanded the 0.x line.
- 2025: v0.7.0 added git webhook, git setup, pages ACL, and package-maintainer version guidance.
- 2026: v0.8.0 added hub commands, meta profile handling, build tag operations, and instance-origin configuration.

### Related projects

- hut is tied to the SourceHut suite: git.sr.ht, builds.sr.ht, todo.sr.ht, lists.sr.ht, pages.sr.ht, meta.sr.ht, and hub.sr.ht. Its workflows also intersect with git send-email and project configuration files.

### Sources

- SourceHut project pages, hut release refs, the hut repository summary, and package metadata were used.


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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

- macOS: ~/Library/Application Support/hut/config
- Unix: $XDG_CONFIG_HOME/hut/config, ~/.config/hut/config

## Credential files

- macOS: ~/Library/Application Support/hut/config
- Unix: $XDG_CONFIG_HOME/hut/config, ~/.config/hut/config
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hut
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - hut - 0.6.0-1+b8: normalized package name match | Debian stable package indexes: hut from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLI tool for sr.ht | https://sr.ht/~xenrox/hut/
- Nix - hut: normalized package name match | nixpkgs package indexes: pkgs/by-name/hu/hut/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - hut - 0.4.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: hut from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI tool for sr.ht | https://sr.ht/~emersion/hut/
- apk - hut - 0.8.0-r2: normalized package name match | Alpine Linux edge package indexes: hut from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | command-line tool for sr.ht | https://sr.ht/~xenrox/hut
- apk - hut-bash-completion - 0.8.0-r2: normalized package name match | Alpine Linux edge package indexes: hut-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for hut | https://sr.ht/~xenrox/hut
- apk - hut-doc - 0.8.0-r2: normalized package name match | Alpine Linux edge package indexes: hut-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | command-line tool for sr.ht (documentation) | https://sr.ht/~xenrox/hut
- apk - hut-fish-completion - 0.8.0-r2: normalized package name match | Alpine Linux edge package indexes: hut-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for hut | https://sr.ht/~xenrox/hut
- apk - hut-zsh-completion - 0.8.0-r2: normalized package name match | Alpine Linux edge package indexes: hut-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for hut | https://sr.ht/~xenrox/hut
- dnf - hut - 0.7.0-4.fc44: normalized package name match | Fedora Rawhide package metadata: hut from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A CLI tool for Sourcehut | https://git.sr.ht/~xenrox/hut
- pacman - hut - 0.8.0-1: normalized package name match | Arch Linux sync databases: hut from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A CLI tool for Sourcehut | https://sr.ht/~xenrox/hut
- zypper - hut - 0.8.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: hut from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A CLI tool for sr.ht | https://sr.ht/~xenrox/hut
- zypper - hut-bash-completion - 0.8.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: hut-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash Completion for hut | https://sr.ht/~xenrox/hut
- zypper - hut-fish-completion - 0.8.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: hut-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Fish Completion for hut | https://sr.ht/~xenrox/hut
- zypper - hut-zsh-completion - 0.8.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: hut-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | ZSH Completion for hut | https://sr.ht/~xenrox/hut
- MacPorts - hut: normalized package name match | MacPorts ports tree: devel/hut/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [scdoc](https://www.automicvault.com/pkg/brew/scdoc/) - Build dependency declared by Homebrew.
- [ghorg](https://www.automicvault.com/pkg/brew/ghorg/) - Shares av.db curated category or tags: cli, developer-tools, git, source-control.
- [ghq](https://www.automicvault.com/pkg/brew/ghq/) - Shares av.db curated category or tags: cli, developer-tools, git, source-control.
- [gickup](https://www.automicvault.com/pkg/brew/gickup/) - Shares av.db curated category or tags: cli, developer-tools, git, source-control.
- [scm-manager](https://www.automicvault.com/pkg/brew/scm-manager/) - Shares av.db curated category or tags: cli, developer-tools, git, source-control.
- [scmpuff](https://www.automicvault.com/pkg/brew/scmpuff/) - Shares av.db curated category or tags: cli, developer-tools, git, source-control.
- [fetch](https://www.automicvault.com/pkg/brew/fetch/) - Shares av.db curated category or tags: cli, developer-tools, source-control.
- [gibo](https://www.automicvault.com/pkg/brew/gibo/) - Shares av.db curated category or tags: cli, developer-tools, source-control.
- [giflib](https://www.automicvault.com/pkg/brew/giflib/) - Shares av.db curated category or tags: cli, developer-tools, source-control.

## Combined YAML source

View the package source record on GitHub. [combined/hut.yml](https://github.com/automic-vault/db/blob/main/combined/hut.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
