No record of which repository a package was installed from

Bug #1091228 reported by Matthew Paul Thomas on 2012-12-17
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Medium
Unassigned

Bug Description

Currently, for any given package you have installed, there is no record of which source/repository it was installed from.

This is important if, for example, you want to remove an experimental repository (such as a PPA). The repository may no longer contain those packages, and may no longer even exist, but you may still want to remove all software that was installed from that repository (bug 625628).

It may also be helpful, when diagnosing problems, to tell whether any installed packages are from unusual sources.

apt could record the source used whenever installing or upgrading/downgrading a package.

John Swing (john-swing) wrote :

If I'm not wrong I think the command apt-cache policy <package> show the source it was installed from.

Dimitri John Ledkov (xnox) wrote :

@ John Swing
If and only if the said package/version still exists in one of your sources. Otherwise it's reported as:
$ apt-cache policy linux-image-3.7.0-5-generic
linux-image-3.7.0-5-generic:
  Installed: 3.7.0-5.13
  Candidate: 3.7.0-5.13
  Version table:
 *** 3.7.0-5.13 0
        100 /var/lib/dpkg/status

Or a slightly more descriptive name in Synaptic is "local or obsolete"

summary: - No record of which source a package was installed from
+ No record of which repository a package was installed from
Daniel Hartwig (wigs) wrote :

> If I'm not wrong I think the command apt-cache policy <package> show
> the source it was installed from.

That command shows the sources each version is /available/ from, not
where it was installed from.

> If and only if the said package/version still exists in one of your sources.

Some times, and only by coincidence. That is not a reliable indicated
of whether such a package was installed from a particular source.

Changed in apt (Ubuntu):
importance: Undecided → Medium
Changed in apt (Ubuntu):
status: New → Fix Committed
Changed in apt (Ubuntu):
status: Fix Committed → New
Changed in apt (Ubuntu):
importance: Medium → Wishlist
Changed in apt (Ubuntu):
importance: Wishlist → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers