No record of which repository a package was installed from

Bug #1091228 reported by Matthew Paul Thomas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
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.

Revision history for this message
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.

Revision history for this message
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
Revision history for this message
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
Mathew Hodson (mhodson)
Changed in apt (Ubuntu):
importance: Medium → Wishlist
Mathew Hodson (mhodson)
Changed in apt (Ubuntu):
importance: Wishlist → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.