On Fri, Jan 30, 2004 at 02:26:40AM +0000, Colin Watson wrote:
> On Thu, Jan 29, 2004 at 03:31:44PM -0800, Nano Nano wrote:
> > What is the precise definition of "available"?
> Whatever's in your available file (/var/lib/dpkg/available). Remember to
> run 'dselect update' rather than 'apt-get update' to keep this up to
> date. I believe only the latest version of each package is listed.
I finally ended up with this script to list the name and version of
every package I have installed or could have installed :
apt-cache -f pkgnames | xargs apt-cache show | \
grep-dctrl -sPackage,Version . | grep '.' | sed -e \
"s/Package: /*/" -e "s/Version: /|/" | tr '\n' '|' | sed -e "s/*//g" \
-e "s/||/ /g" | tr '|' '\n' | sort
$ /mnt/apt/a | head -n3
You can run this though "cut -d' ' -f1 | uniq" and diff any two
instances of this to see what packages are "new".
 All versions that "apt-cache show" will show will be included.