macOS
brew install trash-clilocal Homebrew formula metadata
sudo port install trashMacPorts ports tree · sysutils/trash/Portfile · ソース: api.github.com
brew / 順位 1142
trash-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install trash-clilocal Homebrew formula metadata
sudo port install trashMacPorts ports tree · sysutils/trash/Portfile · ソース: api.github.com
sudo apk add trash-cliAlpine Linux edge package indexes · trash-cli · ソース: dl-cdn.alpinelinux.org
sudo apt install trash-cliDebian stable package indexes · trash-cli · ソース: deb.debian.org
sudo dnf install trash-cliFedora Rawhide package metadata · trash-cli · ソース: dl.fedoraproject.org
nix profile install nixpkgs#trash-clinixpkgs package indexes · pkgs/by-name/tr/trash-cli/package.nix · ソース: api.github.com
sudo pacman -S trash-cliArch Linux sync databases · trash-cli · ソース: geo.mirror.pkgbuild.com
sudo zypper install trash-cliopenSUSE Tumbleweed package metadata · trash-cli · ソース: download.opensuse.org
概要
Command-line interface to the freedesktop.org trashcan
履歴
trash-cli is a Python command-line interface to the freedesktop.org trash can. Its README describes a suite of commands for moving files to trash, listing trashed files, restoring them, emptying trash, and removing matching trashed entries while preserving metadata such as original path, deletion date, and permissions.
The project grew out of the Unix command-line gap between irreversible `rm` and desktop trash implementations. The official README frames trash-cli as a command-line and scripting interface to the same trash can used by KDE, GNOME, and XFCE, making desktop-style file recovery available from shells and scripts.
GitHub repository metadata identifies `andreafrancia/trash-cli` as an official source repository created in 2011, while the README examples still show older usage dates from 2007 and 2008. The project has continued to publish tagged versions and maintain Python packaging instructions, with the README recommending pipx or pip, source installs from Git, and distro package managers.
trash-cli moved from being a convenience wrapper for freedesktop.org trash semantics into a broadly packaged Unix utility. The official README lists package-manager installation commands for Debian/Ubuntu, Arch Linux, and Fedora, and the batch input additionally records availability in Homebrew, apk, Debian, dnf, MacPorts, Nix, pacman, Ubuntu, and zypper.
The package's adoption is tied to cross-desktop Linux behavior: by using the freedesktop.org trash location and metadata model, it fits systems where graphical file managers and command-line tools need to see the same trash state.
Typical use is replacing ad hoc destructive cleanup with explicit trash operations: `trash-put` sends files or directories to the trash, `trash-list` supports shell filtering, `trash-restore` interactively restores entries, `trash-empty` clears trash or old entries, and `trash-rm` removes trashed files matching patterns.
The README explicitly warns against aliasing `rm` directly to `trash-put` because the commands have different semantics, including directory handling. Instead it suggests using shell aliases that remind users not to run `rm`, and it documents cron-based automatic deletion with `trash-empty 30`.
For package-manager users, trash-cli is the portable Linux answer to safer deletion from scripts and terminals. It matters because it integrates with the desktop trash standard rather than inventing a private holding directory, so it can be packaged once and behave consistently across common Unix desktops.
The formula is also a good example of a small CLI whose executable surface is intentionally split into subcommands, making it easy for downstream packagers and shell users to expose focused tools instead of one large interactive program.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
trash | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
trash-empty | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
trash-list | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
trash-put | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
trash-restore | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
trash-rm | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:trash-cli |
|---|---|
| バージョン | 0.24.5.26 |
| パッケージマネージャ | Homebrew |
| ホームページ | https://github.com/andreafrancia/trash-cli |
| リポジトリ | https://github.com/andreafrancia/trash-cli |
| Bottle | 未記録 |
| サービス | 宣言なし |
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
trash-cli 0.24.5.26-0.3
command line trashcan utility
https://github.com/andreafrancia/trash-cli
sudo apt install trash-clitrash-cli
nix profile install nixpkgs#trash-clitrash-cli 0.23.11.10-1
command line trashcan utility
https://github.com/andreafrancia/trash-cli
sudo apt install trash-clitrash-cli 0.24.5.26-r1
Command line interface to the freedesktop.org trashcan
https://github.com/andreafrancia/trash-cli
sudo apk add trash-clitrash-cli-doc 0.24.5.26-r1
Command line interface to the freedesktop.org trashcan (documentation)
https://github.com/andreafrancia/trash-cli
sudo apk add trash-cli-doctrash-cli-pyc 0.24.5.26-r1
Precompiled Python bytecode for trash-cli
https://github.com/andreafrancia/trash-cli
sudo apk add trash-cli-pyctrash-cli 0.24.5.26-21.fc45
Command line interface to the freedesktop.org trashcan
https://github.com/andreafrancia/trash-cli
sudo dnf install trash-clitrash-cli 0.24.5.26-3
Command line trashcan (recycle bin) interface
https://github.com/andreafrancia/trash-cli
sudo pacman -S trash-clitrash-cli 0.24.5.26-1.5
Command line interface to the freedesktop.org trashcan
https://github.com/andreafrancia/trash-cli
sudo zypper install trash-clitrash
sudo port install trashソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.