Automic VaultAutomic Vault

brew

Install macos-trash with Homebrew, MacPorts

Move files and folders to the trash. Version 3.0.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install macos-trash

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install macos-trash

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

overview

Package summary

Move files and folders to the trash

Commands and aliases

  • trash

history

Project history and usage

macos-trash is a Swift command-line tool that moves files and folders to the macOS Trash instead of deleting them directly.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for macos-trash. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 4 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
trashcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version3.0.0
manager updated
local dataok
upstreamcurrent
latest detectedv3.0.0

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

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:macos-trash
Version3.0.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/macos-trash
Homepagehttps://github.com/sindresorhus/macos-trash
Repositoryhttps://github.com/sindresorhus/macos-trash
Upstream docshttps://github.com/sindresorhus/macos-trash#readme
LicenseMIT
Source archivehttps://github.com/sindresorhus/macos-trash/archive/refs/tags/v3.0.0.tar.gz
Uses from macOSswift
Bottleavailable (on arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

MacPorts95%

macos-trash

sudo port install macos-trash
  • normalized package name match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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