LinuxCommandLibrary

paclog

filters and displays entries from the pacman log file

TLDR

Display the entire pacman log

$ paclog
copy
Display pacman-style logged commandline entries
$ paclog --commandline
copy
Display log events for a specific package
$ paclog --package [package_name]
copy
Display package actions of a specific type
$ paclog --action [install|reinstall|upgrade|downgrade|remove|all]
copy
Display only errors, warnings, and notes
$ paclog --warnings
copy
Display the list of installed packages according to the log
$ paclog --pkglist
copy

SYNOPSIS

paclog [options]

DESCRIPTION

paclog filters and displays entries from the pacman log file (/var/log/pacman.log). It provides structured access to package management history, making it easy to see when packages were installed, upgraded, or removed.
Part of the pacutils collection, paclog can filter by package name, action type, date range, or severity level. This is useful for troubleshooting system issues by reviewing recent package changes or tracking the history of a specific package.
The --pkglist option reconstructs the current installed package list by replaying the log, useful for verification or recovery scenarios.

PARAMETERS

--commandline

Show command-line entries from log
--package _name_
Filter entries for a specific package
--action _type_
Filter by action: install, reinstall, upgrade, downgrade, remove, all
--warnings
Show only warnings, errors, and notes
--pkglist
List packages that are currently installed according to log
--after _date_
Show entries after specified date
--before _date_
Show entries before specified date
--logfile _file_
Use alternate log file
--help
Display help information
--version
Display version information

CAVEATS

Depends on an intact pacman.log file. Log rotation or clearing will lose historical data. Part of the pacutils package (not installed by default on Arch). Date parsing requires specific formats.

SEE ALSO

pacman(8), pactree(8), pacsift(1), pacinfo(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community