# macos-trash を Homebrew, MacPorts でインストール

macos-trash のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:macos-trash
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install macos-trash
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install macos-trash
```

  証拠: MacPorts ports tree: sysutils/macos-trash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:macos-trash
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/macos-trash>
- **バージョン:** 3.0.0
- **ソース概要:** Move files and folders to the 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>
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- trash (cli)
- trash (エイリアス)

## macOS 提供ライブラリ

- swift

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 3.0.0
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/sindresorhus/macos-trash
- 検出された最新: v3.0.0 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

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

### ソース

- <https://api.github.com/repos/sindresorhus/macos-trash>
- <https://github.com/sindresorhus/macos-trash>
- <https://github.com/sindresorhus/macos-trash#readme>
- source_facts.package-manager


## セキュリティノート

macos-trash に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** macos-trash
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** osx-trash, trash, trash-cli
- **Requirements:** macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- MacPorts - macos-trash: normalized package name match | MacPorts ports tree: sysutils/macos-trash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - trash: installed executable or alias match | MacPorts ports tree: sysutils/trash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/ja/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [trash-cli](https://www.automicvault.com/ja/pkg/npm/trash-cli/) - Executable or command metadata overlaps with this package. Shared terms: files, folders, move, trash.
- [rmtrash](https://www.automicvault.com/ja/pkg/brew/rmtrash/) - Local package facts share a topical domain. Shared terms: files, move, trash.
- [fileicon](https://www.automicvault.com/ja/pkg/brew/fileicon/) - Local package facts share a topical domain. Shared terms: files, folders.

## Combined YAML source

View the package source record on GitHub. [combined/macos-trash.yml](https://github.com/automic-vault/db/blob/main/combined/macos-trash.yml)


## ソース

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