Re: newbie package question

2004-08-18 Thread John Summerfield
Thomas Adam wrote: On Sat, Aug 14, 2004 at 04:37:07PM -0400, Tong wrote: I vaguely remember that apt-get has the ability to report version numbers by reading its man page, but I can be quite wrong... COLUMNS=200 dpkg -l | awk '/^ii/ {print $3}' dpkg --status If the package isn't installe

Re: newbie package question

2004-08-18 Thread Thomas Adam
On Sat, Aug 14, 2004 at 04:37:07PM -0400, Tong wrote: > I vaguely remember that apt-get has the ability to report version > numbers by reading its man page, but I can be quite wrong... COLUMNS=200 dpkg -l | awk '/^ii/ {print $3}' Will give you the version. As for apt-get, well: apt-get showpkg

Re: newbie package question

2004-08-14 Thread Paul Gear
Kevin Mark wrote: > ... >>>dpkg -l|grep libc >> >>This is a solution, but not perfect, 'cause sometimes the package name >>gets truncated, e.g.: > > Hi Tong, > here is the answer to the 'truncation'. > doing: > COLUMNS=139 dpkg -l > this sets the env var COLUMNS temporarity to 139 for this command

Re: newbie package question

2004-08-14 Thread Tong
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 | \

Re: newbie package question

2004-08-14 Thread canaima
Tong wrote: dpkg -l|grep libc This is a solution, but not perfect, 'cause sometimes the package name gets truncated, e.g.: ii libcupsys2-gnu 1.1.20final+rc Common UNIX Printing System(tm) - libs ii liblocale-gett 1.01-17Using libc functions for internationalizatio [...] COLUMNS=

Re: newbie package question

2004-08-14 Thread Kevin Mark
On Sat, Aug 14, 2004 at 04:37:07PM -0400, Tong wrote: > On Sat, 14 Aug 2004 21:44:27 +0200, Sven Hoexter 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)? > > Yeah, I wante

Re: newbie package question

2004-08-14 Thread s. keeling
Incoming from Tong: > On Sat, 14 Aug 2004 21:44:27 +0200, Sven Hoexter 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)? > > Yeah, I wanted to know that too. > > > dpkg -l

Re: newbie package question

2004-08-14 Thread Tong
On Sat, 14 Aug 2004 21:44:27 +0200, Sven Hoexter 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)? Yeah, I wanted to know that too. > dpkg -l|grep libc This is a solution, but no

Re: newbie package question

2004-08-14 Thread Seneca
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' --

Re: newbie package question

2004-08-14 Thread Sven Hoexter
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)? dpkg -l|grep libc HTH Sven -- It ain't so bad bein' alone if you know it'll never last nothing lasts forever 'cept the certainly of change an

Re: newbie package question

2004-08-14 Thread Shot
Hello. Mark D. Hansen: > How can I find out what version of a package > I have currently installed (e.g., glibc)? `apt-cache policy libc6` This is the only thing I use on a daily basis and didn't find out how to do with aptitude (in the commandline). All I came up with is something like [EMAIL