macOS
brew install safe-rmlocal Homebrew formula metadata
安装
brew install safe-rmlocal Homebrew formula metadata
sudo apt install safe-rmDebian stable package indexes · safe-rm · 来源: deb.debian.org
nix profile install nixpkgs#safe-rmnixpkgs package indexes · pkgs/by-name/sa/safe-rm/package.nix · 来源: api.github.com
概览
Wraps rm to prevent dangerous deletion of files
历史
safe-rm wraps the standard removal command and blocks deletion of paths listed in system or user configuration files.
safe-rm was created and maintained by François Marier as a wrapper that refuses to remove configured protected files and directories.
Version 0.11 moved the per-user configuration toward the XDG Base Directory convention. Version 0.13 added `/usr/local/etc/safe-rm.conf` for macOS Catalina, and version 1.0.0 was a complete rewrite in Rust.
safe-rm entered Debian and Ubuntu archives early enough for Ubuntu Precise to carry version 0.8 in 2010. It later became available through Homebrew and Nix as well as current Debian-family distributions.
Administrators place protected paths in a system configuration file, while individual users can add personal protections under the XDG configuration directory. `safe-rm` then intercepts removal requests and refuses targets matching those rules.
It is intended as a guard against accidental destructive commands, not as a trash or recovery system.
safe-rm represents a classic Unix package pattern: preserve the familiar `rm` interface while adding a locally maintained denylist for irreplaceable paths. Its long distribution history, XDG migration, macOS-specific system configuration support, and eventual language rewrite make it a compact case study in maintaining a safety wrapper across Unix variants.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/etc/safe-rm.conf/usr/local/etc/safe-rm.conf~/.config/safe-rm可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
safe-rm | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:safe-rm |
|---|---|
| 版本 | 1.1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/safe-rm |
| 主页 | 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-09-13T13:47:42Z |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
safe-rm 1.1.0-5+b7
wrapper around the rm command to prevent accidental deletions
sudo apt install safe-rmsafe-rm
nix profile install nixpkgs#safe-rmsafe-rm 1.1.0-5
wrapper around the rm command to prevent accidental deletions
sudo apt install safe-rm来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.