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