Version 1 (modified by skvidal, 8 years ago)
--

Yum History Command

At the end of 2009 (or thereabouts) a 'history' command was added to yum. The history command allows an admin to access detailed information on the history of yum transactions that have been run on a system.

Yum started keeping a sqlite db of the information from each and every transaction. The history is organized by transaction id. Each time you perform a 'yum' command which changes your system pkgs in someway the history db is updated with this information. The history command provides you a way to search

  • yum history list [pkgname...] [transaction_id...]

a table of the transactions. It takes two optional arguments. A package name/glob and a transaction id number.

For example: 'yum history list zsh' will return a table of all the transactions where the pkg 'zsh' was modified in some way

'yum history list 1 2 10' will return a table of transactions 1, 2 and 10.

  • yum history info [pkgname...] [transaction_id ...] same arguments as 'list' but provides detailed information on the transaction. You may best use this piped to 'less'.

  • yum history summary [pkgname...] [transaction_id ...] create a summary of what the transactions have done. example:
        yum history summary glibc
        Login user                 | Time                | Action(s)        | Altered 
        -------------------------------------------------------------------------------
        seth vidal <skvidal>   | Last 3 months       | E, I, O, U       |     1873
        seth vidal <skvidal>   | Last 6 months       | I, U             |      154
        seth vidal <skvidal>   | Last year           | Update           |       16

Undo – undo what a transaction did

Redo/repeat – redo what a transaction did

New – create a new history db, preserving the old one