openSUSE:Libzypp history
(Redirected from Libzypp/Package History)
Purpose
trace back
- package origin
- package requester (user/dependencies)
- which packages were ever installed
History file
Location
The default location is /var/log/zypp/history. This can be changed via history.logfile key in /etc/zypp/zypp.conf.
Format
- CSV file with pipe character (|) as the value separator
- one event per line
- different actions have different set of values (columns), see the tables below
- lines starting with # are treated as comments
The following are tables of history log values for each known action. Each line starts with a timestamp and an action ID.
|
| ||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||
|
|
Example
2008-09-24 11:48:58|rremove|packman 2008-09-24 11:50:02|radd |packman|http://packman.iu-bremen.de/suse/11.0 2008-09-24 11:53:10|install|amarok-yauap|1.4.10-25|x86_64||factory|4421dfa718ab73c805c1c695c97b1b67f39bf2f3 2008-09-24 11:53:25|install|amarok-lang|1.4.10-25|x86_64||factory|691030edafcc4fbc22aa225350f9de32974e4bc2 # Additional rpm output: # warning: /var/cache/zypp/packages/packman/x86_64/amarok-1.4.10-100.pm.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 9a795806 # 2008-09-24 11:53:45|install|amarok|1.4.10-100.pm.1|x86_64|root@kompost|packman|ee0fffa1e4eeaaeb8799bd05c6882ef74100d681
API
Write API
HistoryLog class should be used to write to this file.
Read API
TODO