Subject: Re: listing change of installed packages
To: Alistair Crooks <agc@pkgsrc.org>
From: Steven J. Dovich <dovich@lethe.tiac.net>
List: tech-pkg
Date: 04/25/2001 18:01:49
> On Wed, Apr 25, 2001 at 03:12:12PM -0500, Tracy Di Marco White wrote:
> > 
> > Something I've been wanting for a while was something running from (for
> > example) the daily script that would compare the installed packages
> > (as listed in /var/db/pkg) to the installed packages from the previous
> > day.  Sometimes I've done a "make update" and packages get removed along
> > the way and the update fails in a particular package but completes on
> > the main one.  If I'm not going through the output from make update, it
> > can be more difficult to figure out what disappeared, and I'd like a
> > simple way to list changes.  Anyone else interested, done this, comments?
> > It seems as if it'd be a simple thing to code, so if anyone else is
> > interested I can see what I can whip up to do it.  My thought is to just
> > compare the list of directories in /var/db/pkg.
> > 
> > Tracy J. Di Marco White
> > Project Vincent Systems Manager
> > gendalia@iastate.edu
> 
> make show-downlevel

Maybe I am missing something, but this looks like a job for:

	pkg_info -a | sort

Compare against the results from the prior day and you have an
indication of what is installed/removed/updated. The only item that
does not get noted is updates where the version of the package did
not change.

/sjd