manage_orphans
List or remove orphaned packages on Arch Linux to free up disk space by eliminating dependencies no longer required.
Instructions
[MAINTENANCE] Unified tool for managing orphaned packages (dependencies no longer required). Supports two actions: 'list' (show orphaned packages) and 'remove' (remove orphaned packages). Only works on Arch Linux. Requires sudo access for removal. Examples: action='list' → shows all orphaned packages with disk usage; action='remove', dry_run=true → preview what would be removed; action='remove', dry_run=false, exclude=['pkg1'] → remove all orphans except 'pkg1'.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: 'list' (list orphaned packages) or 'remove' (remove orphaned packages) | |
| dry_run | No | Preview what would be removed without actually removing (only for remove action). Default: true | |
| exclude | No | List of package names to exclude from removal (only for remove action) |