Get update type of .deb file

Tom H tomh0665 at gmail.com
Wed Apr 3 15:50:37 UTC 2013


On Wed, Apr 3, 2013 at 11:09 AM, Big bang theory
<baglio.giuseppe at yahoo.com> wrote:
>>>>>
>>>>> My question is really simple: how I can get the update type of a deb
>>>>> package?
>>>>>
>>>>> Example:
>>>>> vim_7.3.429-2ubuntu2.1_amd64.deb -> precise
>>>>> vim_7.3.429-2ubuntu2_amd64.deb  -> precise-updates
>>>>>
>>>>> vino_3.4.2-0ubuntu1.2_amd64.deb -> precise-security
>>>>> vino_3.4.1-0ubuntu1_amd64.deb -> precise
>>>>
>>>> aptitude search -F "%p %t %v %V" vim
>>>> aptitude search -F "%p %t %v %V" ^vim$
>>>>
>>>> apt-cache madison vim
>>>>
>>>> apt-cache policy vim
>>>>
>>>> (less obviously because you have to look at the name of the
>>>> "/var/lib/apt/lists/..._Packages" file associated with the vim
>>>> version)
>>>> apt-cache showpkg vim
>>>
>>> WOW thank you very much! I think this is what i need.
>>
>> You're welcome.
>
> I really appreciate your reply but now I need something that is independant
> from the running version of Ubuntu, do you have any idea ?

It's either held locally in "/var/lib/apt/lists/*_Packages" or in a
repository; for the UK:

http://uk.archive.ubuntu.com/ubuntu/dists/raring/{main,multiverse,restricted,universe}/binary-amd64/Packages.bz2"




More information about the ubuntu-users mailing list