Apt-get: how to check version number before installation?

Padraig padraigrorry at gmail.com
Mon Dec 10 23:13:15 UTC 2007


On Dec 10, 2007 5:47 PM, Peter Garrett <peter.garrett at optusnet.com.au>
wrote:

> > sudo apt-cache search packagename
>
> You don't need sudo here: apt-cache search packagename  is OK
> But it won;t show versions...
>
> Try
>
> apt-cache madison packagename
>
> or
>
> apt-cache policy packagename


Ahh, thanks.

Also, how about apt-cache show packagename?

I like madison, seems the most compact and concise.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071210/ccc820d0/attachment.html>


More information about the ubuntu-users mailing list