# Install gomi with Homebrew, Nix

Functions like rm but with the ability to restore files. Version 1.6.4 via Homebrew; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#gomi.

## 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
- **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>
- **Last updated:** 2026-07-27T16:47:25+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- gomi (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.6.4
## 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
## 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


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
