Re: How to get version information in common notation
On Wed, Oct 12, 2011 at 11:58 AM, Harry Putnam <email@example.com> wrote:
> Darac Marjal <firstname.lastname@example.org> 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.
> 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.
aptitude search -F '%p %v' xorg
or for all installed packages
aptitude search -F '%p %v' '?installed'