Feisty How to see which pkgs added since initial install?

Larry Alkoff labradley at mindspring.com
Sat Aug 25 13:10:08 UTC 2007


Tim Broderick wrote:
> On Fri, 24 Aug 2007 22:27:29 -0500
> Larry Alkoff <labradley at mindspring.com> wrote:
> 
>> I would like to be able to see what packages have been added since
>> the initial install of Ubuntu (Feisty Fawn).
>>
>> dpkg -l |grep ii
>> will show _all_ installed files.
>> but I only want the files installed _after_ installation.
>>
>> Larry
> 
> It's not exactly what your looking for but,
> 
> cat /var/log/dpkg.log | grep 'status installed'
> 
> will show all installed packages by date.
> 
> Tim
> 


Thanks Tim.  You have given me a good start.

I experimented with your script line.

First I changed 'dpkg.log' to 'dpkg.log*' because there were multiple 
logs from log-rotate.

Second I used sort which sorted the first column (date of install) so 
all the initial installation pkgs were at the top.

cat /var/log/dpkg.log* |sort | grep 'status installed' |less

The above could be simplified with
sort /var/log/dpkg.log* | grep 'status installed' |less

Since all the pkgs on the install cd are dated the same, the next thing 
would be to eliminate all entries in dpkg.log* with the installation date.

I also wouldn't mind eliminating all pkg names starting with 'lib' since 
I'm mostly interested in which packages have been installed post-install.

Larry

-- 
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux




More information about the ubuntu-users mailing list