Changes between Version 1 and Version 2 of YumHistory

Show
Ignore:
Author:
skvidal (IP: 98.122.161.79)
Timestamp:
06/04/10 18:03:26 (8 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YumHistory

    v1 v2  
    11= Yum History Command = 
    2  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. 
     2 Near 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. 
    33 
    44Yum started keeping a sqlite db of the information from each and every transaction. The history is organized by transaction id. Each 
    55time you perform a 'yum' command which changes your system pkgs in someway the history db is updated with this information. 
    6 The history command provides you a way to search  
    76 
    8    - yum history list [pkgname...] [transaction_id...] 
    9       a table of the transactions. It takes two optional arguments. A package name/glob and a transaction id number.  
     7The yum history dbs are normally found in '''/var/lib/yum/history/''' 
    108 
    11       For example:      'yum history list zsh' will return a table of all the transactions where the pkg 'zsh' was modified in some way 
    12                         'yum history list 1 2 10' will return a table of transactions 1, 2 and 10. 
     9== Commands == 
    1310 
    14    - yum history info [pkgname...] [transaction_id ...] 
    15      same arguments as 'list' but provides detailed information on the transaction. You may best use this piped to 'less'. 
     11 * '''yum history list [pkgname...] [transaction_id...]''' 
     12   a table of the transactions. It takes two optional arguments. A package name/glob and a transaction id number.  
     13   For example:       
     14   * yum history list zsh 
     15     will return a table of all the transactions where the pkg 'zsh' was modified in some way. 
     16   * yum history list 1 2 10  
     17     will return a table of transactions 1, 2 and 10. 
    1618    
     19   with no arguments it will list the most recent 20 transactions. 
    1720 
    18    - yum history summary [pkgname...] [transaction_id ...] 
    19      create a summary of what the transactions have done. example: 
     21 * '''yum history info [pkgname...] [transaction_id ...]''' 
     22 
     23   same arguments as 'list' but provides detailed information on the transaction. You may best use this piped to 'less'. 
     24    
     25   with no arguments it will display info on the most recent transaction. 
     26 
     27 * '''yum history summary [pkgname...] [transaction_id ...]''' 
     28 
     29   create a summary of what the transactions have done. example: 
    2030 
    2131    {{{ 
    2333        Login user                 | Time                | Action(s)        | Altered  
    2434        ------------------------------------------------------------------------------- 
    25         seth vidal <skvidal>   | Last 3 months       | E, I, O, U       |     1873 
    26         seth vidal <skvidal>   | Last 6 months       | I, U             |      154 
    27         seth vidal <skvidal>   | Last year           | Update           |       16 
     35        seth vidal <skvidal>       | Last 3 months       | E, I, O, U       |     1873 
     36        seth vidal <skvidal>       | Last 6 months       | I, U             |      154 
     37        seth vidal <skvidal>       | Last year           | Update           |       16 
    2838     }}} 
     39 
     40        The first row of this chart says that in the last 3 months transactions involving the glibc pkg were performed which modified 1873 pkgs and involved Erase, Install, Obsolete and Update operations. 
     41 
     42   with no arguments it will present a total summary of the system's history. 
     43 
     44 * '''yum history undo [transaction_id|'last']''' 
     45 
     46    this will attempt to 'undo' what the specified transaction did. In many cases this is possible, but in some cases the packages yum needs to downgrade to are no longer available anywhere and therefore an undo will not succeed. 
     47  
     48 
     49 * ''' yum history redo [transaction_id|'last']''' 
     50 
     51   this will attempt to perform the exact same transaction specified. This does NOT do a 'reinstall' but simply performing the same  
     52   transaction again. 
     53   
     54 * '''yum history new''' 
     55 
     56   creates a new yum history db, saving the old one. This command is only to let you keep the size of any single yum history database down in size. When you create a new history db the older transactions will not be accessible unless you move the new history db out of the way. You should rarely ever need to run this command. 
    2957 
    3058 
    3159 
    32       Undo – undo what a transaction did 
    33     ● 
    34       Redo/repeat – redo what a transaction did 
    35     ● 
    36       New – create a new history db, preserving the old one 
    37     ● 
     60