On Sat, 14 Aug 2004 16:26:30 -0400, Seneca wrote: > On Sat, Aug 14, 2004 at 01:28:11PM -0400, Mark D. Hansen wrote: >> How can I find out what version of a package I have currently >> installed (e.g., glibc)? > > apt-cache policy foo > dpkg -l foo > zcat /usr/share/doc/foo/changelog.Debian.gz | \ > sed -n -e 's/^[^\x28]*[\x28]//' -e 's/\x29.*//' -e '1p'
$ COLUMNS=500 dpkg -l | awk '{print $1 " " $2 "_" $3 "\n" }' | grep libc ii glibc-doc_2.3.2.ds1-13 ii libc6_2.3.2.ds1-13 ii libc6-dev_2.3.2.ds1-13 ii libcap1_1.10-14 ii libcdparanoia0_3a9.8-11 ii libcomerr2_1.35-6 ii libconsole_0.2.3dbs-54 ii libcroco2_0.5.1-1 ii libcupsimage2_1.1.20final+rc1-3 ii libcupsys2-gnutls10_1.1.20final+rc1-3 ii libcurl2_7.11.2-1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]