apt-mark: list automatically-installed packages

Bug #411369 reported by Paul Sladen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Binary package hint: apt

Currently 'apt-mark' can set, or unset the auto-remove status ('Auto-Installed:') in /var/lib/apt/extended_states .

However, the best way to *list* the content of those flags appears to be some invocation of

  grep -A1 packagename /var/lib/apt/extended_states

Ideally, if apt-mark is given a commandline with no set/unset command it should list the status of the matching package(s).

Alternatively, this could be via an added 'apt-mark list' or 'apt-mark show' option.

Revision history for this message
Paul Sladen (sladen) wrote :

Colin suggests a current (clean) workaround is:

  $ grep-dctrl -nsAuto-Installed -PX libc6-dev /var/lib/apt/extended_states

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

 Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in apt (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Julian Andres Klode (juliank) wrote :

This should have been there at the time the bug was reported, as apt-mark showauto. It's replaced by apt-cache showauto now.

Changed in apt (Ubuntu):
status: Triaged → Invalid
summary: - apt-mark should allow listing of autoremove status
+ apt-mark: list automatically-installed packages
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.