[pkg-kolab] A way to determine installed/available package versions?
Thomas Koch
thomas at koch.ro
Tue Jun 26 12:20:57 UTC 2012
Jeroen van Meeuwen (Kolab Systems):
> Hi there,
>
> In order to update [1] to be more like [2], I'm looking to port the
> attached script I use for the RPM/YUM based distributions into something
> that handles APT distributions as well.
>
> [1] http://wiki.kolab.org/Native_Packages:Kolab_2.4_for_Debian_Squeeze
> [2] http://wiki.kolab.org/Native_Packages:Kolab_2.4_for_Enterprise_Linux_6
>
> I was thinking of using apt-cache policy <package>, but I was wondering if
> anybody knew of a better/easier way to query for package versions (the
> output of apt-cache policy is a little hard to parse).
>
> Kind regards,
>
> Jeroen van Meeuwen
you might check
man dpkg-query
options --status or --showformat
Thomas Koch, http://www.koch.ro
More information about the pkg-kolab-devel
mailing list