0x79 - a blog

Work in progress.

yum - list packages you actually installed

If you want to find out, which packages you installed (without package dependencies), use the following commands to do it:

# find the most recent history entry
yum history list
    Loaded plugins: langpacks, refresh-packagekit
    ID     | Login user               | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
       152 | System <unset>           | 2015-02-05 22:42 | Update         |   11   
       151 | System <unset>           | 2015-02-05 00:05 | Install        |   80   
#...

# get detailed information on changes from update no.1 till the latest entry
# grep for " Install" (don't forget the leading space, to omit Dep-Install entries)
yum history info 2..152 | grep " Install"
#...
    Install     gnuplot-4.6.3-6.fc20.x86_64                         @updates
    Install     golang-1.3.3-1.fc20.x86_64                          @updates
    Install     google-chrome-stable-40.0.2214.94-1.x86_64          @google-chrome
    Install     graphviz-2.34.0-10.fc20.x86_64                      @updates
#...

Follow up:

to do the same thing on debian you can run

( zcat $( ls -tr /var/log/apt/history.log*.gz ) ; cat /var/log/apt/history.log ) | egrep '^(Start-Date:|Commandline:)' | egrep '^Commandline:'

or if you are using aptitude

zgrep "\[INSTALL\]" /var/log/aptitude*