How do I know if a package is supported from python-apt

Sebastian Heinlein sebi at
Wed Jan 10 21:32:08 GMT 2007

On Mi, 2007-01-10 at 15:12 +0100, Martin Pitt wrote:
> Hi,
> Noam Raphael [2006-12-27 23:18 +0200]:
> > Is there a way to get from python-apt the info of whether a package is
> > supported or not? I'm trying to write a utility that will assist in
> > removing unneeded packages, and it seems to me that knowing whether a
> > package is supported or not can help decide whether to remove a
> > package or not.
> Such a feature would greatly help me in apport as well for deciding
> the origin of a particular package (and not report things if it's not
> an Ubuntu package). However, since we cannot assume anything about the
> user's apt sources I doubt that there is a solid method to determine
> this.
> Michael, please prove me wrong. :)

Take a look at the origin attribut of an apt.package.


What tool do you work on? Apt now supports the auto removal of no longer
needed dependencies.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : 

More information about the ubuntu-devel mailing list