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 [1]:

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
3dchess 0.8.1-11
3ddesktop 0.2.4-1
3dwm-clock 0.3.1-11.3

You can run this though "cut -d' ' -f1 | uniq" and diff any two 
instances of this to see what packages are "new".

[1] All versions that "apt-cache show" will show will be included.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to