# termbg を Homebrew, dnf, Nix でインストール

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

## インストール

```sh
sudo av install brew:termbg
```

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

### macOS

- Homebrew (100%):

```sh
brew install termbg
```

  証拠: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install termbg
```

  証拠: Fedora Rawhide package metadata: termbg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#termbg
```

  証拠: nixpkgs package indexes: pkgs/by-name/te/termbg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:termbg
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/termbg>
- **バージョン:** 0.6.2
- **ソース概要:** Rust library for terminal background color detection
- **ホームページ:** <https://github.com/dalance/termbg>
- **リポジトリ:** <https://github.com/dalance/termbg>
- **ライセンス:** Apache-2.0 OR MIT
- **ソースアーカイブ:** <https://github.com/dalance/termbg/archive/refs/tags/v0.6.2.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- termbg (cli)
- termbg (エイリアス)

## ビルド依存関係

- rust

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.6.2
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/dalance/termbg
- 検出された最新: v0.6.2 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

termbg is a Rust library and small check program for detecting a terminal's background color. The README says it reports either RGB values or a dark/light theme.

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

The GitHub repository was created in November 2020, and its v0.1.0 tag points to the initial repository work from the same day. The project has remained a focused terminal-behavior utility rather than a broad terminal UI framework.

### 採用の歴史

termbg is published as a Rust crate and appears in package-manager metadata for Homebrew, dnf, and Nix. Its README badges link crates.io and docs.rs, and its Homebrew formula exposes the included `termbg` executable for checking terminal behavior from the command line.

### 使われ方

Rust programs depend on the crate and call functions such as `terminal`, `rgb`, and `theme` with a timeout. The README also documents an example check program that prints the terminal type, detected RGB value, and dark/light theme.

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

termbg is useful in the terminal-tooling niche because theme-aware CLIs often need to know whether the background is dark or light. Its README documents support and non-support across many terminals, which gives package maintainers and CLI authors a compact compatibility reference.

### タイムライン

- 2020-11-09: GitHub repository created and v0.1.0 tag commit dated.
- 2024-11-15: v0.6.1 tag commit dated.
- 2025-01-06: v0.6.2 tag commit dated.

### Related projects

- The README's compatibility list includes Alacritty, GNOME Terminal, GNU Screen, kitty, iTerm2, macOS Terminal, mintty, tmux, Visual Studio Code, xterm, Win32 console, and several unsupported terminals such as Cmder, ConEmu, PuTTY, QTerminal, and Windows Terminal.

### ソース

- <https://api.github.com/repos/dalance/termbg>
- <https://api.github.com/repos/dalance/termbg/commits/ebd895a0349367115b618a2a1c919c4a35870324>
- <https://api.github.com/repos/dalance/termbg/tags>
- <https://github.com/dalance/termbg#readme>
- source_facts.package-manager


## セキュリティノート

library-like package without higher-risk signals.

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

## ソースデータベース詳細

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

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

- Nix - termbg: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/termbg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - termbg - 0.6.2-5.fc45: normalized package name match | Fedora Rawhide package metadata: termbg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Terminal background color detection | https://crates.io/crates/termbg


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [eza](https://pkg.so/ja/brew/eza/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [nushell](https://pkg.so/ja/brew/nushell/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [bottom](https://pkg.so/ja/brew/bottom/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [lsd](https://pkg.so/ja/brew/lsd/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [hyfetch](https://pkg.so/ja/brew/hyfetch/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [ouch](https://pkg.so/ja/brew/ouch/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [lolcrab](https://pkg.so/ja/brew/lolcrab/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [pfetch-rs](https://pkg.so/ja/brew/pfetch-rs/) - Shares pkgdb curated category or tags: cli, rust, system, terminal.
- [kbt](https://pkg.so/ja/brew/kbt/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, rust, system, terminal.

## Combined YAML source

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


## ソース

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