apt-get doesn't support the purge operation, but is documented.

Bug #125733 reported by Mathias Gug
6
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Wishlist
Michael Vogt

Bug Description

Binary package hint: apt

On Gutsy, running the command apt-get purge fails with an invalid operation message:

$ sudo apt-get purge hello
E: Invalid operation purge

However, the man page and the help message reference the purge operation:

$ apt-get help
[...]

Commands:
  [...]
   purge - Remove and purge packages

However, the --purge option is supported by the remove operation:

$ sudo apt-get remove --purge hello
[...]
Removing hello ...

Related branches

Revision history for this message
Vincent Legout (vlegout) wrote :

I confirm this bug on Gutsy.

Changed in apt:
status: New → Confirmed
Michael Vogt (mvo)
Changed in apt:
importance: Undecided → Wishlist
Michael Vogt (mvo)
Changed in apt:
assignee: nobody → mvo
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

apt (0.7.6ubuntu9) gutsy; urgency=low

  * apt-pkg/deb/dpkgpm.cc:
    - fix progress reporting precent calculation (LP: #137798)
  * make apt build with g++ 4.3
  * fix missing SetExecClose() call when the status-fd is used
    (LP: #136767)
  * debian/apt.cron.daily:
    - move unattended-upgrade before apt-get autoclean
  * fix "purge" commandline argument, closes LP: #125733
    (thanks to Julien Danjou for the patch)
  * cmdline/apt-get.cc:
    - do not change the auto-installed information if a package
      is reinstalled (LP: #139448)

 -- Michael Vogt <email address hidden> Tue, 11 Sep 2007 20:55:00 +0200

Changed in apt:
status: Fix Committed → Fix Released
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.