Re: How to get version information in common notation
Joey Hess <joeyh@debian.org> writes:
> Harry Putnam wrote:
>> I'm not sure what you mean there, but for example.. if you search a
>> pkg at:
>> http://packages.debian.org/squeeze/xorg-dev
>>
>> It will show up with a version notation. So I'm thinking the OS must
>> have that information somewhere.
>
> dpkg-query can display the information in whatever form you want. For
> example:
>
> dpkg-query --show --showformat '${Package} ${Version}\n'
>
> (package-version is rarely used in Debian because it's ambiguous;
> is foo-9-1 version 9-1 or foo, or version 1.2 of foo-9?)
My only excuse is that I had not run into dpkg-query yet. Nice nice.
and thanks again for pointing it out.
Reply to: