libzypp 17.38.15

Libzypp History File

Log important events like installation/deletion of packages and repositories. More...

## Classes
class | zypp::HistoryLog
| Writing the zypp history file. More...
class | zypp::HistoryActionID
| Enumeration of known history actions. More...
class | zypp::HistoryLogData
| A zypp history log line split into fields. More...
class | zypp::HistoryLogDataInstall
| A zypp history log line for an installed packaged. More...
class | zypp::HistoryLogPatchStateChange
| A zypp history log line for an installed packaged. More...
class | zypp::HistoryLogDataRemove
| A zypp history log line for a removed packge. More...
class | zypp::HistoryLogDataRepoAdd
| A zypp history log line for an added repository. More...
class | zypp::HistoryLogDataRepoRemove
| A zypp history log line for a removed repository. More...
class | zypp::HistoryLogDataRepoAliasChange
| A zypp history log line for a repo alias change. More...
class | zypp::HistoryLogDataRepoUrlChange
| A zypp history log line for a repo url change. More...
class | zypp::HistoryLogDataStampCommand
| A zypp history log line identifying the program that triggered the following commit. More...
class | zypp::parser::HistoryLogReader
| Zypp history file parser. More...

## Detailed Description

Log important events like installation/deletion of packages and repositories.

# 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

See also
  User data as transaction id

## Action Columns

### Install

A package has been installed.

- 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
- 9 userdata/transactionId

### Remove

A package has been removed.

- 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))
- 7 userdata/transactionId

### Radd

A repository has been added.

- 1 timestamp
- 2 action ID (`"radd"`)
- 3 repository alias
- 4 primary URL
- 5 userdata/transactionId

### Rremove

A repository has been removed.

- 1 timestamp
- 2 action ID (`"rremove"`)
- 3 repository alias
- 4 userdata/transactionId

### Ralias

A repository alias has changed.

- 1 timestamp
- 2 action ID (`"ralias"`)
- 3 old alias
- 4 new alias
- 5 userdata/transactionId

### Rurl

The primary URL of a repository has changed.

- 1 timestamp
- 2 action ID (`"rurl"`)
- 3 repository alias
- 4 new URL
- 5 userdata/transactionId

# 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