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

Re: Purge all removed packages



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



Reply to: