[Aptitude-devel] Bug#349414: aptitude: missing format string %-escape for the archive of the installed version

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Thu Feb 20 22:05:21 UTC 2014

Control: tags -1 + moreinfo


The reason why this is not straightforward, as far as I can tell, is
because there's no place where this information is saved.

Packages can be installed by several means, including by hand with
dpkg, and in the basic information (.deb itself, or Packages files
separately) there is no information about where it came from.  I think
that apt (and aptitude through libapt) extract this information from
the content of /var/lib/apt/lists/ , that is, the set of Packages
coming from whatever is enabled in your sources.list, mapping
backwards the candidate version to the source of the Packages file
where the version appears.

For packages installed by hand or obsolete (installed through regular
repositories/mirrors but not present anymore in the Packages list of
the repository), this information is not present anywhere in the
system at the moment (again, as far as I can tell).

So I think it would not be an easy undertaking in the way in which
things work at the moment.

Opinions about what to do?

Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>

More information about the Aptitude-devel mailing list