# Installer macos-trash avec Homebrew, MacPorts

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de macos-trash pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

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

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:macos-trash
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/macos-trash>
- **Version:** 3.0.0
- **Résumé source:** Move files and folders to the trash
- **Page d'accueil:** <https://github.com/sindresorhus/macos-trash>
- **Dépôt:** <https://github.com/sindresorhus/macos-trash>
- **Docs amont:** <https://github.com/sindresorhus/macos-trash#readme>
- **Licence:** MIT
- **Archive source:** <https://github.com/sindresorhus/macos-trash/archive/refs/tags/v3.0.0.tar.gz>
- **Généré:** 2026-07-08T07:18:31+00:00

## exécutables

- trash (cli)
- trash (alias)

## Bibliothèques fournies par macOS

- swift

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma

## Version et fraîcheur

- page générée: 2026-07-08
- version du gestionnaire: 3.0.0
- données locales: OK
- dépôt amont: https://github.com/sindresorhus/macos-trash
- dernière version détectée: v3.0.0 (à jour)
- info: No package-manager update timestamp was available.
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour macos-trash. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Détails de la base source

- **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

## Autres enregistrements de gestionnaires de paquets

- 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


## Liens liés

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


## Sources

- 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
