Apt-get: how to know what version will be installed?

Derek Broughton news at pointerstop.ca
Fri Oct 31 23:44:38 UTC 2008


NoOp wrote:

> On 10/31/2008 08:56 AM, Avi Greenbury wrote:
>> Dotan Cohen wrote:
>>> Before installing an application with apt-get, I would like to check
>>> which version will be installed. How does one do that?
>>> 
>>> Thanks in advance.
>>> 
>> 
>> The top few lines of
>> apt-cache showpkg <package name>
>> give version information.
>> 
> 
> That works well & provides required dependencies etc. However if you
> just want a short, simple output I just use the '-s' option to simulate
> an install. For example:

"apt-cache policy" says what you're going to get and where you're going to
get it from.

"apt-cache madison" (believe it or not, I once understood why it was called
that) does the same more concisely.
-- 
derek





More information about the ubuntu-users mailing list