macOS
brew install gtrashlocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gtrash pour les workflows d'agents IA.
installation
brew install gtrashlocal Homebrew formula metadata
nix profile install nixpkgs#gtrashnixpkgs package indexes · pkgs/by-name/gt/gtrash/package.nix · Source: api.github.com
aperçu
Featureful Trash CLI manager: alternative to rm and trash-cli
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
gtrash | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/umlx5h/gtrash
métadonnées d'installation
| Clé du paquet | brew:gtrash |
|---|---|
| Version | 0.0.6 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/gtrash |
| Page d'accueil | https://github.com/umlx5h/gtrash |
| Dépôt | https://github.com/umlx5h/gtrash |
| Docs amont | https://github.com/umlx5h/gtrash#readme |
| Licence | MIT |
| Archive source | https://github.com/umlx5h/gtrash/archive/refs/tags/v0.0.6.tar.gz |
| Dépendances de compilation | go |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gtrash |
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
gtrash
nix profile install nixpkgs#gtrashpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.