----- Original Message ----- From: "Paulo Jorge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]