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

Re: Querying packages



----- Original Message -----
From: "Paulo Jorge" <paulojjs@bragatel.pt>
To: <debian-user@lists.debian.org>
Sent: Wednesday, November 05, 2003 8:45 PM
Subject: Querying packages

>Greetings,
>
>I'm trying to write a script that querys the local package database to
>find out which packages can be upgraded and the priority of the
>available update. Do you know how can I obtain this information from
the
>database?
>
>Thanks
>--
>Paulo Jorge Jesus Silva

I can think op apt-cache policy <package>
There you have an Installed and a Candidate field that keeps in mind
the settings of the apt preferences file. I think you can use this in a
script and
even use the Version Table to do what you want.

Regards,
Benedict




Reply to: