macOS
brew install macos-trashlocal Homebrew formula metadata
sudo port install macos-trashMacPorts ports tree · sysutils/macos-trash/Portfile · 来源: api.github.com
安装
brew install macos-trashlocal Homebrew formula metadata
sudo port install macos-trashMacPorts ports tree · sysutils/macos-trash/Portfile · 来源: api.github.com
概览
Move files and folders to the trash
历史
macos-trash is a Swift command-line tool that moves files and folders to the macOS Trash instead of deleting them directly.
The official repository was created in January 2015. The current README describes a macOS 13-or-later utility and notes that, although macOS 15 added a built-in `trash` command, this package still provides an interactive flag and fixes Put Back behavior.
The README documents installation through Homebrew, Mint, and manual binary download, while the batch input records Homebrew and MacPorts packaging. Repository metadata captured during this run showed hundreds of GitHub stars, reflecting steady interest in safer command-line deletion on macOS.
The documented CLI shape is `trash [--help | -h] [--version | -v] [--interactive | -i] <path> ...`. The README also suggests aliasing `rm` to `trash` for users who want a safer default in their shell.
macos-trash fills the long-standing gap between Unix `rm` and Finder's Trash. For package users, it is the kind of small native CLI that makes scripts safer while preserving macOS-specific behavior such as recoverable trash items.
安全态势
没有找到 macos-trash 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
trash | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/sindresorhus/macos-trash
安装元数据
| 软件包键 | brew:macos-trash |
|---|---|
| 版本 | 3.0.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/macos-trash |
| 主页 | https://github.com/sindresorhus/macos-trash |
| 仓库 | https://github.com/sindresorhus/macos-trash |
| 上游文档 | https://github.com/sindresorhus/macos-trash#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/sindresorhus/macos-trash/archive/refs/tags/v3.0.0.tar.gz |
| macOS 提供的库 | swift |
| Bottle | 可用 (于 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | macos-trash |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
macos-trash
sudo port install macos-trashtrash
sudo port install trash来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.