installed software list (to be clear)

Sundar Nagarajan sundar.personal at
Tue Mar 3 07:59:28 UTC 2009

Cesar Augusto Suarez wrote:
> I mean, after just the software i've installed after the original 
> installation


try the following commands in a terminal (you can do this as a regular 
user, no need for sudo):

gzip -dc /var/log/installer/initial-status.gz |  perl -00 -n -e 
'/^Package: (\S+)\s.*?Status: install ok installed\s/s and print "$1\n"' 
  > initial-packages

dpkg --get-selections  | perl -n -e '/(\S+)\s+install$/ and print 
"$1\n"' | fgrep -xv -f initial-packages > new-packages


/var/log/installer/initial-status.gz contains (unless you have deleted 
this file since installation), the list of packages installed. There is 
a little more detail in this file which is pared out by the perl command

The second command takes the output of dpkg --get-selections and removes 
those in the initial list.

With the above commands, 'new-packages' should contain the list of 
packages installed AFTER the initial installation.

More information about the ubuntu-users mailing list