[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Purge all removed packages

On Tue, 28 Jan 2003, Santiago Vila wrote:

> Adam Rogoyski wrote:
> >    Is there any way to do something like dpkg --purge -a except
> > to have it purge all packages with Status: deinstall?
> Do you mean this?
> #!/bin/sh
> dpkg --get-selections "*" | grep deinstall | awk '{ print $1 " purge" }' | dpkg --set-selections
> dpkg --pending --remove

   I would append a $ to that grep but yeah that is what I was asking.
I thought this would be a dpkg built-in feature.  It seems likely that
a user may want to treat all deinstalled packages the same and purge them
together in one command.
   Thank you.


Reply to: