query_package_history
Query Arch Linux package history from pacman logs to track installations, upgrades, failures, or sync events for system monitoring and troubleshooting.
Instructions
[HISTORY] Unified tool for querying package history from pacman logs. Supports four query types: 'all' (recent transactions), 'package' (specific package install/upgrade history), 'failures' (failed transactions), and 'sync' (database sync history). Only works on Arch Linux. Examples: query_type='all', limit=50 → recent transactions; query_type='package', package_name='docker' → when docker was installed; query_type='failures' → find errors; query_type='sync', limit=20 → sync history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_type | Yes | Type of query: 'all' (recent transactions), 'package' (package history), 'failures' (failed transactions), or 'sync' (database sync history) | |
| package_name | No | Package name (required for query_type='package') | |
| limit | No | Maximum number of results to return (default 50) |