pacman Log Viewer is qt5 and no activity in the repo, ok …
I’m writing a new (python) tool :
new:
- parse warnings (read old format and new with pacman 6)
- display warnings
- possibility of displaying in calendar mode
- transactions sorted in reverse: most recent first (entries not sorted in transaction)
- one color by transaction
- only filters (no search)
- for warnings: add “FIXED” if chmod has been done or if pacnew no longer exists
- double-click in calendar, filter day in list
- double-click in list, opens log in our editor (optional: kate, gedit, gnome-text-editor, mousepad, pluma) Note: sometime, file is too big for editor !
- double-clic on warm pacnew can open a tool for view diff
- transform date into our system’s format (also works with desktops other than kde?)
By default, it only loads the last 90 days, but we can specify more days in the command line or config file.
In calendar mode, we only see unfixed warnings. (all in list view)
For the moment, this application has no version and is not present in aur. To test it, you’ll need to create a local package.
install one package only for build (uninstall after)
yay -S python-setuptools-git-versioning --asdeps
Download PKGBUILD.git in a folder, and run
makepkg -fsi -Cc -p PKGBUILD.git
configuration
We can use a file ~/.config/logkonsult.conf
editor = "zeditor" # log editor
diff = "code" # diff conf/pacnews
days = 60 # load last x days
If we want edit/save config file/pacnew, install meld
with gvfs
for admin:// protocol
pacman -S meld gvfs --asdeps
if logkonsult.conf
not exists, logconsult use first tool find in system.
in command line
logkonsult-gui -h
#read config file /home/patrick/.config/logkonsult.conf
usage: logkonsult-gui [-h] [-d DAYS] [-f LOGFILE] [-e EDITOR] [-diff EDITOR] [--prune KEEPDAYS]
options:
-h, --help show this help message and exit
-d DAYS since (30) days
-f LOGFILE pacman log (/var/log/pacman.log)
-e EDITOR /usr/bin/kate for view log
-diff EDITOR /usr/bin/meld for view differences
--prune KEEPDAYS delete old entries, except X days and remove `SCRIPTLET` lines
--prune
is only a test, not rewrite pacman.log, only create /var/log/pacman.log.clean
(action will never be present in gui)