No way to view explicity installed packages, excluding automatically installed packages

Bug #122047 reported by Simon Ruggier
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Fix Released
Wishlist
Michael Vogt

Bug Description

Binary package hint: synaptic

In Synaptic, there is an installed packages view, and an autoremovable packages view, but there seems to be no way to view all packages that are installed, but not automatically installed. This would be the most useful list for users that are trying to conserve disk space by removing packages.

LAST CHECKED VERSION:
Jaunty

Koen (koen-beek)
Changed in synaptic:
status: New → Confirmed
Revision history for this message
jojo4u (bugzilla-freedom-x) wrote :

Yes, I hit this barrier as well. Additionally there is no column "automatically installed" configurable. I had to use aptitude since it at least displays the automatically flag.

Revision history for this message
Richard Hansen (rhansen) wrote :

As a workaround, I've attached a script that outputs a list of all packages that are not auto-installed. Here is some sample output:

can_be_marked_as_auto acpi
can_be_marked_as_auto acpi-support
can_be_marked_as_auto acpid
can_be_marked_as_auto adduser
can_be_marked_as_auto alacarte
can_be_marked_as_auto alsa-base
can_be_marked_as_auto alsa-utils
can_be_marked_as_auto amarok-xine
can_be_marked_as_auto anacron
no_dependents apache2
can_be_marked_as_auto apmd
can_be_marked_as_auto app-install-data
no_dependents app-install-data-commercial
can_be_marked_as_auto apparmor
no_dependents apparmor-utils
can_be_marked_as_auto apport
no_dependents apport-gtk
no_dependents apt-rdepends
can_be_marked_as_auto aptitude
can_be_marked_as_auto apturl

The text "no_dependents" indicates that no packages depend on the listed package. These packages can (supposedly) be removed without affecting any other package.

The text "can_be_marked_as_auto" indicates that at least one other package depends on the listed package. These packages can be marked as being automatically installed (via Synaptic by going to Package..Automatically installed or via aptitude by pressing Shift-M).

The script is really slow because there is no fast and reliable way to get reverse dependencies for a package.

Revision history for this message
Micah Gersten (micahg) wrote :

Do the custom filters in synaptic in Jaunty meet your needs, or do you still need an enhancement?

Changed in synaptic (Ubuntu):
status: Confirmed → Incomplete
status: Incomplete → Confirmed
status: Confirmed → Incomplete
Revision history for this message
Richard Hansen (rhansen) wrote :

It is not possible to show only non-automatically installed packages using custom filters in Jaunty's Synaptic.

Changed in synaptic (Ubuntu):
status: Incomplete → Confirmed
Micah Gersten (micahg)
description: updated
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for your bug submission. There is enough information for a developer to start working on this. Please report any other bugs/requests you may have.

Changed in synaptic (Ubuntu):
importance: Undecided → Wishlist
status: Confirmed → Triaged
Michael Vogt (mvo)
Changed in synaptic (Ubuntu):
importance: Wishlist → Undecided
status: Triaged → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Michael Vogt (mvo)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package synaptic - 0.62.7ubuntu3

---------------
synaptic (0.62.7ubuntu3) karmic; urgency=low

  * common/rpackagelister.cc:
    - add prefixes for "name" and "section" in the quick search
      This allows "name:apt" or "section:devel" searches
  * debian/control:
    - recommends gksu|kdebase-bin (kdsu is fine too)
      closes: #442421
  * add filter for manual installed packages (LP: #122047)
  * fix typo (thanks to Florentin Duneau), closes: #542122
  * po/pt_BR.po:
    - updated translation, thanks to Sergio Cipolla
      (closes: #532473)
  * common/rpackage.{cc,h}:
    - fix potential segfault

 -- Michael Vogt <email address hidden> Fri, 04 Sep 2009 11:52:17 +0200

Changed in synaptic (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Simon Ruggier (simon80) wrote :

a7x, you may be either happy or dismayed to know that you can obtain a nearly identical (and more accurate, for reasons that I didn't feel like investigating) result using:

aptitude --disable-columns -F 'can_be_marked_as_auto %p' search '~i!~M~R(~i)'
aptitude --disable-columns -F 'no_dependents %p' search '~i!~M!~R(~i)'

You can refer to http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s05.html for the meanings of the search string - ~R(~i) matches packages whose reverse depends are installed on the system.

However, it's better to use:

aptitude --disable-columns -F 'can_be_marked_as_auto %p' search '~i!~M (~R(~i)|~Rrecommends:(~i))'
aptitude --disable-columns -F 'no_dependents %p' search '~i!~M !(~R(~i)|~Rrecommends:(~i))'

The above includes recommends as well as depends, which is how aptitude calculates which packages to remove anyway.

A tabular list of all manually installed packages can be obtained using:
aptitude search '~i!~M'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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