[GNUz] GNU/Linux ...
Jim Cheetham
gnuz@inode.co.nz
Tue, 06 Jul 2004 12:04:14 +1200
Timothy Musson wrote:
> I don't know whether or not it's possible to get package license info
> easily under Debian, though it's easy enough to remove (or not add) the
> non-free section via apt's sources.list.
>
> Fun: the "vrms" (Virtual RMS) package gets its thrills by sending me a
> monthly reminder to uninstall the non-free "unzip" package. ("unzip" is
> the only non-free prog I haven't found a way to avoid.)
Look in /var/lib/dpkg/status (which is what vrms does, btw).
You're looking for the Section to include "non-free", and the Status to
be "installed".
This shell cmd does the same thing (assuming that packages are always
listed as "Package:\nStatus:\nPriority:\nSection:")
grep -A2 -B1 "Status.* installed" /var/lib/dpkg/status \
|grep -v Priority \
|grep -B2 non-free
-jim