Automic VaultAutomic Vault

brew

gtrash を Homebrew, Nix でインストール

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install gtrash

local Homebrew formula metadata

Linux

Nix確認済み · 92%
nix profile install nixpkgs#gtrash

nixpkgs package indexes · pkgs/by-name/gt/gtrash/package.nix · ソース: api.github.com

概要

パッケージ概要

Featureful Trash CLI manager: alternative to rm and trash-cli

コマンドとエイリアス

  • gtrash

履歴

プロジェクトの歴史と使われ方

gtrash is a Go command-line trash manager built as a safer shell-facing alternative to permanent removal with rm. Its identity is tied to the FreeDesktop.org trash specification: on Linux it writes the same trash metadata and files layout used by desktop environments and other compliant CLI tools, while also offering a TUI-oriented recovery workflow.

プロジェクトの歴史

The public repository was created in January 2024, with its initial commit dated 2024-01-06 and a v0.0.1 release published on 2024-01-08. The README presents the project as a featureful trash CLI manager that can substitute for common rm habits while keeping files recoverable.

The design focuses on a single static Go binary with multiple subcommands. The core operation moves files into a trash location and records .trashinfo metadata, while companion commands list, restore, remove, summarize, and repair trash entries.

採用の歴史

gtrash entered package-manager culture as a small modern CLI rather than as a long-lived Unix base tool. The official README documents installation paths through binary releases, Go install, Nixpkgs, Homebrew, and AUR-style packages; the input metadata also records Homebrew and Nix packaging.

使われ方

The everyday use case is replacing direct deletion with `gtrash put`, then using `gtrash find`, `gtrash restore`, `gtrash restore-group`, `gtrash summary`, or permanent removal options when cleanup is intentional. On Linux, normal trash entries live under `$XDG_DATA_HOME/Trash` or `$HOME/.local/share/Trash`, with external filesystems handled through `.Trash/$uid` or `.Trash-$uid` locations.

The README explicitly warns against blindly aliasing `rm=gtrash put`, because sudo, SSH hosts, and partial rm compatibility can surprise users. That caution is part of the tool's package-nerd appeal: it is safer than rm, but honest about Unix muscle memory.

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

gtrash matters to package users who want a Freedesktop-compatible trash CLI with Go-style distribution ergonomics. It overlaps with `gio trash` and `trash-cli`, but emphasizes a modern TUI, grouped restoration, static binaries, and rm-like flags without inventing a private trash format.

タイムライン

  • 2024-01-06: Public repository initial commit.
  • 2024-01-08: v0.0.1 release published.
  • 2024: README documents package-manager installation through Go install, Nixpkgs, Homebrew, and AUR-style packages.
  • 2025: Repository metadata shows continued maintenance activity into 2025.

Related projects

  • The README positions gtrash alongside `rm`, `gio trash`, `trash-cli`, and `rip`. Its technical foundation is the FreeDesktop.org trash specification, so it is most related to tools and desktops that share that on-disk trash layout.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
gtrashcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-26
マネージャ版0.0.6
マネージャ更新日
ローカルデータOK
上流最新
検出された最新v0.0.6

https://github.com/umlx5h/gtrash

  • 情報No package-manager update timestamp was available.信頼度 低

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:gtrash
バージョン0.0.6
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/gtrash
ホームページhttps://github.com/umlx5h/gtrash
リポジトリhttps://github.com/umlx5h/gtrash
上流ドキュメントhttps://github.com/umlx5h/gtrash#readme
ライセンスMIT
ソースアーカイブhttps://github.com/umlx5h/gtrash/archive/refs/tags/v0.0.6.tar.gz
ビルド依存関係go
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegtrash
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

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

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

gtrash

nix profile install nixpkgs#gtrash
  • normalized package name match
  • 一致条件: Gtrash
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gt/gtrash/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

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