# Install onefetch with Homebrew, apk, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Command-line Git information tool. Version 2.27.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:onefetch
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install onefetch
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install onefetch
```

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

### Linux

- apk (92%):

```sh
sudo apk add onefetch
```

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

- dnf (92%):

```sh
sudo dnf install onefetch
```

  Evidence: Fedora Rawhide package metadata: onefetch 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#onefetch
```

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

- pacman (92%):

```sh
sudo pacman -S onefetch
```

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

- zypper (92%):

```sh
sudo zypper install onefetch
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/onefetch
```

  Evidence: Scoop official bucket manifest trees: bucket/onefetch.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id o2sh.onefetch -e
```

  Evidence: Windows Package Manager source index: o2sh.onefetch from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:onefetch
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/onefetch>
- **Version:** 2.27.1
- **Source summary:** Command-line Git information tool
- **Homepage:** <https://onefetch.dev/>
- **Repository:** <https://github.com/o2sh/onefetch>
- **Upstream docs:** <https://github.com/o2sh/onefetch#readme>
- **License:** MIT
- **Source archive:** <https://github.com/o2sh/onefetch/archive/refs/tags/2.27.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- onefetch (cli)
- onefetch (alias)

## Dependencies

- zstd

## Build dependencies

- cmake
- pkgconf
- rust

## 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: 2.27.1
- Local data: ok
- Upstream repository: https://github.com/o2sh/onefetch
- Upstream latest detected: 2.27.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Onefetch is a Rust command-line tool that summarizes a local Git repository in the terminal. It reads repository metadata and code statistics offline, then displays them with language-aware styling and ASCII art.

### Project history

The project developed as a fetch-style tool for repositories rather than machines: instead of reporting OS, kernel, and hardware information, it reports project name, branch, commit and author statistics, language mix, license, repository size, and related Git metadata.

The changelog shows the tool maturing through performance and packaging work. Version 2.13.0 in 2022 made execution more than twice as fast by reducing allocations and moving expensive Git work toward gitoxide; version 2.20.0 in 2024 marked completion of the transition from git2/libgit2 to gitoxide.

### Adoption history

Onefetch spread through developer package channels rather than a single platform. Its README documents installation on Linux, macOS, and Windows using release binaries plus package managers such as pacman, zypper, Homebrew, and winget, while the wiki also documents Ubuntu, Snap, Chocolatey, and other routes.

Language coverage became part of its adoption loop. onefetch.dev displays the supported language ASCII previews from the same Languages.yaml data used by the binary, and the site lists 122 languages with programming, data, markup, and prose categories.

### How it is used

A developer runs onefetch inside a Git worktree or passes a repository path. The tool can be used as a one-off repository summary, a shell greeter when entering Git directories, or a machine-readable metadata extractor through JSON and YAML output modes.

The README emphasizes offline operation, performance, and customization: users can hide fields, adjust styling, ignore files and directories, choose output formats, and use .mailmap to merge duplicate authors found in Git history.

### Why package nerds care

Onefetch is notable because it packages repository anthropology into a single CLI: language detection, Git traversal, manifest/license parsing, author aggregation, and terminal presentation. Its migration to gitoxide is also a package-nerd signal, replacing libgit2 bindings with a Rust-native Git stack.

### Timeline

- 2022: version 2.13.0 introduced major speed work and the onefetch.dev ASCII preview site.
- 2024: version 2.20.0 completed the transition from git2 to gitoxide.
- 2026: the Homebrew formula page lists 2.27.1 as the stable packaged version.

### Related projects

- The project depends conceptually on Git metadata and implementation-wise on Rust Git tooling. Its output style belongs to the wider family of terminal fetch utilities, while its data source is the repository rather than the host system.

### Sources

- <https://formulae.brew.sh/formula/onefetch>
- <https://github.com/o2sh/onefetch>
- <https://github.com/o2sh/onefetch/wiki/installation>
- <https://onefetch.dev/>
- <https://raw.githubusercontent.com/o2sh/onefetch/main/CHANGELOG.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** onefetch
- **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

- Nix - onefetch: normalized package name match | nixpkgs package indexes: pkgs/by-name/on/onefetch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - onefetch - 2.26.1-r0: normalized package name match | Alpine Linux edge package indexes: onefetch from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Git repository summary on your terminal | https://github.com/o2sh/onefetch
- apk - onefetch-bash-completion - 2.26.1-r0: normalized package name match | Alpine Linux edge package indexes: onefetch-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for onefetch | https://github.com/o2sh/onefetch
- apk - onefetch-doc - 2.26.1-r0: normalized package name match | Alpine Linux edge package indexes: onefetch-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Git repository summary on your terminal (documentation) | https://github.com/o2sh/onefetch
- apk - onefetch-fish-completion - 2.26.1-r0: normalized package name match | Alpine Linux edge package indexes: onefetch-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for onefetch | https://github.com/o2sh/onefetch
- apk - onefetch-zsh-completion - 2.26.1-r0: normalized package name match | Alpine Linux edge package indexes: onefetch-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for onefetch | https://github.com/o2sh/onefetch
- dnf - onefetch - 2.27.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: onefetch from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Command-line Git information tool | https://crates.io/crates/onefetch
- pacman - onefetch - 2.27.1-1: normalized package name match | Arch Linux sync databases: onefetch from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Git repository summary on your terminal | https://github.com/o2sh/onefetch
- zypper - onefetch - 2.27.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: onefetch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Git repository summary on your terminal | https://github.com/o2sh/onefetch
- MacPorts - onefetch: normalized package name match | MacPorts ports tree: devel/onefetch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/onefetch: normalized package name match | Scoop official bucket manifest trees: bucket/onefetch.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - o2sh.onefetch: normalized package name match | Windows Package Manager source index: o2sh.onefetch from https://cdn.winget.microsoft.com/cache/source.msix


## 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.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [bfg](https://www.automicvault.com/pkg/brew/bfg/) - Shares av.db curated category or tags: cli, developer-tools, git.
- [gti](https://www.automicvault.com/pkg/brew/gti/) - Shares av.db curated category or tags: cli, developer-tools, git.
- [semtag](https://www.automicvault.com/pkg/brew/semtag/) - Shares av.db curated category or tags: cli, developer-tools, git.
- [serie](https://www.automicvault.com/pkg/brew/serie/) - Shares av.db curated category or tags: cli, developer-tools, git.
- [committed](https://www.automicvault.com/pkg/brew/committed/) - Shares av.db curated category or tags: cli, developer-tools, git, rust.
- [garden](https://www.automicvault.com/pkg/brew/garden/) - Shares av.db curated category or tags: cli, developer-tools, git, rust.
- [git-absorb](https://www.automicvault.com/pkg/brew/git-absorb/) - Shares av.db curated category or tags: cli, developer-tools, git, rust.
- [git-grab](https://www.automicvault.com/pkg/brew/git-grab/) - Shares av.db curated category or tags: cli, developer-tools, git, rust.
- [git-graph](https://www.automicvault.com/pkg/brew/git-graph/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, git.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
