# Install gomi with Homebrew, Nix

Functions like rm but with the ability to restore files. Version 1.6.4 via Homebrew; verified 2026-06-07.

## Install

```sh
sudo av install brew:gomi
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gomi
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gomi
```

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

## Package facts

- **Package key:** brew:gomi
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gomi>
- **Version:** 1.6.4
- **Source summary:** Functions like rm but with the ability to restore files
- **Homepage:** <https://gomi.dev>
- **Repository:** <https://github.com/babarot/gomi>
- **Upstream docs:** <https://gomi.dev/>
- **License:** MIT
- **Source archive:** <https://github.com/babarot/gomi/archive/refs/tags/v1.6.4.tar.gz>
- **Last updated:** 2026-06-07T09:43:03Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gomi (cli)
- gomi (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: 1.6.4
- Package-manager updated: 2026-06-07
- Local data: ok
- Upstream repository: https://github.com/babarot/gomi
- Upstream latest detected: v1.6.4 (current)
## Project history and usage

gomi is a Go command-line replacement for rm that moves files into a trash area and provides restoration instead of immediate permanent deletion. Its package-manager appeal is the Unix-shaped interface: users can install one small binary, alias rm to gomi if they choose, and get a safer deletion workflow without changing shells or file managers.

### Project history

The public repository was created in May 2015 under babarot and later describes gomi as Japanese for trash. The README frames the project as a response to the command-line gap between graphical trash folders and rm, adding a TUI restore browser, XDG Trash specification support, multi-volume handling, and YAML configuration.

The project evolved from a safer rm-style utility into a cross-platform trash CLI with release automation and prebuilt binaries. Its configuration path, ~/.config/gomi/config.yaml, and its restore browser make it closer to a system utility than a one-shot script.

### Adoption history

The official README documents installation through a curl installer, prebuilt GitHub release binaries, Homebrew, Scoop, AUR, and the author's afx manifest format. That spread is typical for a small CLI whose value comes from being available everywhere a shell user might want to replace a dangerous default.

Homebrew and other package-manager metadata give gomi a low-friction install route for people who do not want to manage GitHub release assets by hand.

### How it is used

Typical use is to run gomi with rm-compatible flags, or to alias rm=gomi, so deletions are moved to trash. Restoration is launched with --restore or -b, opening an interactive browser where users can search, preview, select, and restore trashed files.

The tool is most useful on developer workstations and servers where mistaken rm commands are costly but a full desktop trash workflow is absent or inconvenient.

### Why package nerds care

gomi is a neat package-nerd example of replacing a risky POSIX habit with a small packaged binary. It respects familiar rm ergonomics while adding XDG trash behavior and a restore UI, so distributions can package it as an opt-in safety tool rather than a shell framework.

### Timeline

- 2015: GitHub repository created.
- 2025: GitHub release pages show the 1.x release stream in active use.
- 2026: The README documents gomi as a cross-platform trash CLI with XDG Trash support, prebuilt binaries, and package-manager installs.

### Related projects

- rm is the command-line behavior gomi intentionally resembles.
- trash-cli and desktop file-manager trash implementations are adjacent tools in the same safer-deletion space.
- The freedesktop.org XDG Trash specification is relevant to gomi's interoperability claims.

### Sources

- <https://api.github.com/repos/babarot/gomi>
- <https://github.com/babarot/gomi>
- <https://github.com/babarot/gomi/releases>
- <https://gomi.dev/>
- <https://raw.githubusercontent.com/babarot/gomi/main/README.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/gomi/config.yaml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gomi
- **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 - gomi: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gomi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gtrash](https://www.automicvault.com/pkg/brew/gtrash/) - 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, system, trash.
- [ddh](https://www.automicvault.com/pkg/brew/ddh/) - Shares av.db curated category or tags: cli, file-management, system.
- [g-ls](https://www.automicvault.com/pkg/brew/g-ls/) - 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/gomi.yml](https://github.com/automic-vault/db/blob/main/combined/gomi.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
