Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts 安装 macos-trash

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install macos-trash

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install macos-trash

MacPorts ports tree · sysutils/macos-trash/Portfile · 来源: api.github.com

概览

软件包摘要

Move files and folders to the trash

命令和别名

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

时间线

  • 2015: Official GitHub repository created.
  • 2024: macOS 15 introduced a built-in `trash` command, according to the project README.
  • 2026: Repository activity continued through commits pushed to the default branch.

Related projects

  • The README links related projects including the cross-platform Node.js `trash`, `empty-trash`, `macos-wallpaper`, and `do-not-disturb`.

安全态势

尚未找到受保护工具覆盖

没有找到 macos-trash 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 4 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
trashcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本3.0.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v3.0.0

https://github.com/sindresorhus/macos-trash

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namemacos-trash
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • osx-trash
  • trash
  • trash-cli
Requirements
  • macos
  • xcode
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts95%

macos-trash

sudo port install macos-trash
  • normalized package name match
  • 匹配方式:Macos Trash
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/macos-trash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
MacPorts94%

trash

sudo port install trash
  • installed executable or alias match
  • 匹配方式:Trash
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/trash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment