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.
install - package has been installed
col
|
description
|
1
|
timestamp
|
2
|
action ID ("install")
|
3
|
package name
|
4
|
package epoch:version-release
|
5
|
package architecture
|
6
|
requested by (user@hostname, pid:appname, or empty (solver))
|
7
|
repository alias
|
8
|
package checksum
|
|
remove - package has been removed
col
|
description
|
1
|
timestamp
|
2
|
action ID ("remove")
|
3
|
package name
|
4
|
package epoch:version-release
|
5
|
package architecture
|
6
|
requested by (user@hostname, pid:appname, or empty (solver))
|
|
radd - repository has been added
col
|
description
|
1
|
timestamp
|
2
|
action ID ("radd")
|
3
|
repository alias
|
4
|
primary URL
|
|
rremove - repository has been removed
col
|
description
|
1
|
timestamp
|
2
|
action ID ("rremove")
|
3
|
repository alias
|
|
ralias - repository alias has changed
col
|
description
|
1
|
timestamp
|
2
|
action ID ("ralias")
|
3
|
old alias
|
4
|
new alias
|
|
rurl - primary URL of repository has changed
col
|
description
|
1
|
timestamp
|
2
|
action ID ("rurl")
|
3
|
repository alias
|
4
|
new URL
|
|
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