← 返回命令列表

Linux command

paclog 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

paclog

Example

paclog --commandline

Example

paclog --package [package_name]

Example

paclog --action [install|reinstall|upgrade|downgrade|remove|all]

Example

paclog --warnings

Example

paclog --pkglist

说明

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.

参数

--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

FAQ

What is the paclog command used for?

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.

How do I run a basic paclog example?

Run `paclog` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --commandline do in paclog?

Show command-line entries from log