Changes from Version 1 of YumDB

Show
Ignore:
Author:
skvidal (IP: 98.122.161.79)
Timestamp:
06/23/10 20:52:16 (7 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YumDB

    v0 v1  
     1= YumDB = 
     2 
     3Since yum 3.2.26 yum has started storing additional information about installed packages in a location outside of the rpmdatabase. None of the information stored there is critical to performing its function but it enhances the user experience and makes it possible to know more about the context in which a package was installed. 
     4 
     5== Format == 
     6the yumdb is a simple flat file database. The filesystem creates a simple tree structure: 
     7 
     8{{{ 
     9   /var/lib/yum/yumdb/ 
     10                      p/ 
     11                        $checksum-packagename-$ver-$rel.$arch/keyname 
     12}}} 
     13 
     14Each keyname is a file the contents of which are the values. 
     15 
     16== Commonly stored information == 
     17 * from_repo: the name of the repo from which the pkg was installed 
     18 * reason: reason for installing this pkg (user, dep, etc) 
     19 * command_line: command line used to install this pkg 
     20 * releasever: $releasever of the system at the time the pkg was installed (so you can look for pkgs which have lingered across release updates) 
     21 
     22== Accessing this information == 
     23There is a script called 'yumdb' in yum-utils which allows you to access this information: 
     24 
     25 * get the repo from which yum-utils was installed: 
     26    {{{ 
     27       yumdb get from_repo yum-utils 
     28    }}} 
     29  
     30 * set a note on the package 'joe' 
     31    {{{  
     32       yumdb set note "installed by seth b/c he likes it" joe 
     33    }}} 
     34   
     35  * Dump out all yumdb values about yum-utils: 
     36    {{{ 
     37       yumdb info yum-utils 
     38     }}} 
     39 
     40