# Install gtrash with Homebrew, Nix

Featureful Trash CLI manager: alternative to rm and trash-cli. Version 0.0.6 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:gtrash
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gtrash
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gtrash
```

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

## Package facts

- **Package key:** brew:gtrash
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gtrash>
- **Version:** 0.0.6
- **Source summary:** Featureful Trash CLI manager: alternative to rm and trash-cli
- **Homepage:** <https://github.com/umlx5h/gtrash>
- **Repository:** <https://github.com/umlx5h/gtrash>
- **Upstream docs:** <https://github.com/umlx5h/gtrash#readme>
- **License:** MIT
- **Source archive:** <https://github.com/umlx5h/gtrash/archive/refs/tags/v0.0.6.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gtrash (cli)
- gtrash (alias)

## Build dependencies

- go

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

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

- <https://api.github.com/repos/umlx5h/gtrash>
- <https://api.github.com/repos/umlx5h/gtrash/releases?per_page=100>
- <https://github.com/umlx5h/gtrash>
- <https://raw.githubusercontent.com/umlx5h/gtrash/main/README.md>
- <https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html>


## 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:** 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:** head, stable

## Other Package-Manager Records

- Nix - gtrash: normalized package name match | nixpkgs package indexes: pkgs/by-name/gt/gtrash/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 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.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gomi](https://www.automicvault.com/pkg/brew/gomi/) - Shares av.db curated category or tags: cli, file-management, system, trash.
- [rmtrash](https://www.automicvault.com/pkg/brew/rmtrash/) - Shares av.db curated category or tags: cli, file-management, system, trash.
- [rmw](https://www.automicvault.com/pkg/brew/rmw/) - Shares av.db curated category or tags: cli, file-management, system, trash.
- [trash-cli](https://www.automicvault.com/pkg/brew/trash-cli/) - Shares av.db curated category or tags: cli, file-management, freedesktop, system, trash.
- [g-ls](https://www.automicvault.com/pkg/brew/g-ls/) - Shares av.db curated category or tags: cli, file-management, go, system.
- [ddh](https://www.automicvault.com/pkg/brew/ddh/) - Shares av.db curated category or tags: cli, file-management, system.
- [gaffitter](https://www.automicvault.com/pkg/brew/gaffitter/) - Shares av.db curated category or tags: cli, file-management, system.
- [mmv](https://www.automicvault.com/pkg/brew/mmv/) - Shares av.db curated category or tags: cli, file-management, system.

## Combined YAML source

View the package source record on GitHub. [combined/gtrash.yml](https://github.com/automic-vault/db/blob/main/combined/gtrash.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
