# 使用 Homebrew, Nix 安装 gomi

查看 gomi 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gomi
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:gomi
- **软件包管理器:** Homebrew
- **版本:** 1.6.4
- **来源摘要:** Functions like rm but with the ability to restore files
- **主页:** <https://gomi.dev>
- **仓库:** <https://github.com/babarot/gomi>
- **最后更新:** 2026-07-27T16:47:25+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gomi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.6.4
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

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

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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
## 其他软件包管理器记录

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


## 来源

- 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
