paclog
Query pacman package history
TLDR
Display the entire pacman log
Display pacman-style logged commandline entries
Display log events for a specific package
Display package actions of a specific type
Display only errors, warnings, and notes
Display the list of installed packages according to the log
Display help
Display version
SYNOPSIS
paclog [options] [package_name...]
PARAMETERS
-f, --full
Show full log entries, including detailed information.
-i, --install
Display only package installation events.
-r, --remove
Display only package removal events.
-u, --upgrade
Display only package upgrade events.
-s, --sync
Display only database synchronization events.
-d, --date
Filter log entries to a specific date (e.g., YYYY-MM-DD).
-l, --limit
Limit the output to the last N log entries.
-t, --total
Display the total number of events found based on other filters.
-p, --package
Filter log entries for a specific package name.
--from
Filter log entries starting from a specific date.
--to
Filter log entries up to a specific date.
-h, --help
Display a help message and exit.
-V, --version
Display version information and exit.
DESCRIPTION
paclog is a utility designed for parsing and displaying the pacman log file, typically located at /var/log/pacman.log. It simplifies the process of reviewing package management operations such as installations, upgrades, and removals.
By offering various filtering and formatting options, paclog allows users to quickly find specific events, analyze system changes over time, and troubleshoot package-related issues without manually sifting through a potentially large log file. It enhances the pacman experience by providing a more user-friendly interface to its transaction history.
CAVEATS
paclog is primarily designed for Arch Linux and its derivatives, as it specifically parses the pacman.log format.
The exact set of features and options might vary depending on the paclog implementation (e.g., if it's a custom script or part of a package like pacutils).
It requires read access to /var/log/pacman.log.
LOG FILE LOCATION
The primary log file parsed by paclog is /var/log/pacman.log. This file records all package installations, removals, and upgrades performed by pacman.
DATE FORMATS
When specifying dates with options like -d, --from, or --to, common formats include YYYY-MM-DD or YYYY-MM-DD HH:MM:SS. The specific accepted formats might vary slightly based on the paclog version.
HISTORY
paclog emerged as a user-friendly wrapper or script to parse the pacman log file, /var/log/pacman.log, on Arch Linux systems. While pacman itself handles package management, its log file can become quite extensive.
Early users and developers recognized the need for a dedicated tool to quickly query and filter this log. Various implementations have existed, but a common and robust version is often found within the pacutils collection of pacman helper tools, which enhances the administrative experience for Arch Linux users.


