macOS
brew install rmtrashlocal Homebrew formula metadata
sudo port install rmtrashMacPorts ports tree · sysutils/rmtrash/Portfile · 来源: api.github.com
安装
brew install rmtrashlocal Homebrew formula metadata
sudo port install rmtrashMacPorts ports tree · sysutils/rmtrash/Portfile · 来源: api.github.com
nix profile install nixpkgs#rmtrashnixpkgs package indexes · pkgs/by-name/rm/rmtrash/package.nix · 来源: api.github.com
概览
Move files and directories to the trash
历史
rmtrash is a macOS command-line utility that moves files and directories to the system Trash instead of deleting them permanently.
TBXark created rmtrash as a small macOS utility that moves files and directories to the system Trash instead of permanently unlinking them. The current implementation is written in Swift and includes a bundled manual and tests.
The utility evolved toward broad rm-compatible option handling, including recursive deletion, interactive modes, filesystem-boundary control, root preservation, empty-directory removal, and verbose output.
rmtrash is installable through Homebrew, Mint, MacPorts, and Nix, with the latter two channels identified in the supplied package facts. The official README also documents manual binary installation.
The project encourages interactive shell use through del and trash aliases while recommending that users keep permanent rm visibly separate.
Users pass files or directories to rmtrash with familiar rm-style flags. Recursive and interactive modes, preserve-root behavior, one-filesystem traversal, empty-directory handling, and verbose output are supported.
RMTRASH_INTERACTIVE_MODE can select the default prompting mode. The official README recommends aliases such as del or trash while leaving permanent deletion accessible through the full path to rm.
rmtrash gives macOS command-line users recoverable deletion with an interface modeled closely on GNU rm, including recursive, force, interactive, verbose, filesystem-boundary, and root-preservation options.
Its value lies in fitting Finder Trash behavior into familiar shell muscle memory while retaining guardrails such as interactive prompts and preserve-root semantics.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
rmtrash | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/TBXark/rmtrash
安装元数据
| 软件包键 | brew:rmtrash |
|---|---|
| 版本 | 0.8.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/rmtrash |
| 主页 | https://github.com/TBXark/rmtrash |
| 仓库 | https://github.com/TBXark/rmtrash |
| 许可证 | MIT |
| 源码归档 | https://github.com/TBXark/rmtrash/archive/refs/tags/0.8.0.tar.gz |
| 最后更新 | 2026-09-12T10:46:43Z |
| Pulse | updated |
| Bottle | 可用 (于 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | rmtrash |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
rmtrash
nix profile install nixpkgs#rmtrashrmtrash
sudo port install rmtrash来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.