# onefetch を Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

onefetch のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install onefetch
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install onefetch
```

  証拠: 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
```

  証拠: 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
```

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

  証拠: 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
```

  証拠: 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
```

  証拠: openSUSE Tumbleweed package metadata: onefetch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

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

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:onefetch
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.27.1
- **ソース概要:** Command-line Git information tool
- **ホームページ:** <https://onefetch.dev/>
- **リポジトリ:** <https://github.com/o2sh/onefetch>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- onefetch (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.27.1
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

- 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.

### ソース

- <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>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- 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-9.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.4: normalized package name match | openSUSE Tumbleweed package metadata: onefetch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

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


## ソース

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