Skip to main content
Glama

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
NameRequiredDescriptionDefault
actionYesAction to perform: 'list' (list orphaned packages) or 'remove' (remove orphaned packages)
dry_runNoPreview what would be removed without actually removing (only for remove action). Default: true
excludeNoList of package names to exclude from removal (only for remove action)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nihalxkumar/arch-linux-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server