# 使用 Homebrew, apt, Nix 安装 safe-rm

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

## 安装

```sh
sudo av install brew:safe-rm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install safe-rm
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install safe-rm
```

  证据: Debian stable package indexes: safe-rm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#safe-rm
```

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

## 软件包事实

- **软件包键:** brew:safe-rm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/safe-rm>
- **版本:** 1.1.0
- **来源摘要:** Wraps rm to prevent dangerous deletion of files
- **主页:** <https://launchpad.net/safe-rm>
- **上游文档:** <https://launchpad.net/safe-rm>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://launchpad.net/safe-rm/trunk/1.1.0/+download/safe-rm-1.1.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- safe-rm (cli)
- safe-rm (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.0
- 本地数据: OK
- 上游仓库: https://launchpad.net/safe-rm
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

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: /etc/safe-rm.conf, /usr/local/etc/safe-rm.conf, ~/.config/safe-rm
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** safe-rm
- **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

## 其他软件包管理器记录

- Debian apt - safe-rm - 1.1.0-5+b7: normalized package name match | Debian stable package indexes: safe-rm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | wrapper around the rm command to prevent accidental deletions | https://launchpad.net/safe-rm
- Nix - safe-rm: normalized package name match | nixpkgs package indexes: pkgs/by-name/sa/safe-rm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - safe-rm - 1.1.0-5: normalized package name match | Ubuntu 24.04 LTS package indexes: safe-rm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | wrapper around the rm command to prevent accidental deletions | https://launchpad.net/safe-rm


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [eza](https://pkg.so/zh-hans/brew/eza/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [dust](https://pkg.so/zh-hans/brew/dust/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [lsd](https://pkg.so/zh-hans/brew/lsd/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [czkawka](https://pkg.so/zh-hans/brew/czkawka/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [lla](https://pkg.so/zh-hans/brew/lla/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [rmtrash](https://pkg.so/zh-hans/brew/rmtrash/) - Shares pkgdb curated category or tags: cli, file-deletion, file-management, system.
- [rnr](https://pkg.so/zh-hans/brew/rnr/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [dutree](https://pkg.so/zh-hans/brew/dutree/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.

## Combined YAML source

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


## 来源

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