query_package_history
Unified tool for querying package history from pacman logs (4 query types). Examples: querytype='all' shows recent transactions; querytype='package', packagename='docker' shows when docker was installed/upgraded; querytype='failures' shows failed operations; querytype='sync' shows database sync hist
How to use it
query_package_history is exposed by the Arch MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the query_package_history tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Arch MCP
uvx arch-ops-serverOther tools in Arch MCP (26)
Parse makepkg.conf settings (CFLAGS, MAKEFLAGS, build configuration)
Package trust scoring (votes, maintainer, age)
Parse pacman.conf settings with optional focus. Examples: focus='full' (default) returns all settings; focus='ignoredpackages' returns only ignored packages with warnings for critical ones; focus='paralleldownloads' returns only parallel downloads setting with optimization recommendations.
Comprehensive PKGBUILD analysis (50+ red flags)
Find critical news (manual intervention required)
Check package database sync status
Disk usage with warnings
Find failed systemd services
Check for available updates
Retrieve journalctl boot logs
Fetch Arch Linux news from RSS
News posted since last system update
Get official package details (hybrid local/remote)
Package cache size and age
System info (kernel, memory, uptime)
Install with security checks (blocks malicious packages)
Show packages in specific group
List all groups (base, base-devel, etc.)
Manage install reasons (3 actions: list explicit packages, mark as explicit/dependency)
Manage orphaned packages (2 actions: list orphaned packages, remove orphans). Always runs in dry-run mode first for safety.
Smart mirror management (4 actions: status, test, suggest, health). Examples: optimizemirrors(action='status', autotest=True) lists and tests all mirrors; optimizemirrors(action='suggest', country='US', limit=5) suggests top 5 US mirrors; optimizemirrors(action='health') checks for issues and gives
Unified file-package ownership queries (3 modes: file→package, package→files, filename search)
Remove packages - accepts single package name or list (with deps, forced)
Query Arch Wiki with ranked results
Search AUR (relevance/votes/popularity/modified)
Check file integrity (modified/missing files)