[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get version information in common notation



On 10/12/2011 11:58 AM, Harry Putnam wrote:
Darac Marjal<mailinglist@darac.org.uk>  writes:

On Wed, Oct 12, 2011 at 09:45:19AM -0500, Harry Putnam wrote:
How can I quickly get version information for packages I have
installed.  I mean the common kind of notion used throughout linux.

If you want the version information for PACKAGES, try "dpkg -l|grep
'^i'", though I'm not entirely certain what kind of notation is
"commonly used throughout linux".

Good thanks for that tip.  That's just what I was looking for.

I guess one could nitpik what is actually the accepted notation but
maybe I should have said through linux (except debian).

I think you'll find that `pkg-version' is a very typical notion
when referencing a version for communication... maybe
    pkg version
would be high on the list too.

whereas

     aptitude versions xorg

=>  ihA 1:7.6+9                testing           500

Is not. You don't even get the pkg name together with the version at
all so copy paste becomes copy edit paste.



wtopa@dj:~$ aptitude versions xorg
i   1:7.6+9   testing,unstable          990

wtopa@dj:~$ dpkg -l xorg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  xorg           1:7.6+9        X.Org X Window System

If you use the tools it looks fine to me.


Am I misunderstanding something here.

[...]

Part of the problem may be that many packages provide a number of
commands not equal to one. How would you propose finding the version of
a library or a documentation package?

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.


Surely there is a standard way to see version information at a glance
and be able to copy paste it to email or whatever in a couple of moves
instead of dinking around for 5/6 minutes to get it.

    dpkg -l|grep '^i'

does that pretty nicely... thanks again.




Reply to: