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

Re: How to get version information in common notation



> How can I quickly get version information for packages I have
> installed.  I mean the common kind of notion used throughout linux. 
> 
> Not the unusual non standard notation one gets with `apt-get
> versions',
> which is not suitable for copy/paste:
> 
> ,----
> |    aptitude versions xorg
> |   ihA 1:7.6+9           testing    500
> `----
> 
> I mean like `pkg-version'

A succinct listing can be had from "wajig snapshot" which outputs
"package=version":

wajig snapshot | egrep bash
bash=4.1-3
bash-completion=1:1.2-3
bash-doc=4.1-3


To use "-" as a delimiter you could do e.g.

wajig snapshot | tr = - | egrep bash
bash-4.1-3
bash-completion-1:1.2-3
bash-doc-4.1-3


-- 
Cheers,
Clive


Reply to: