sábado, 12 de maio de 2012

How to remove all packages marked as RC by dpkg

Let’s see all the packages marked as RC by dpkg. This state means that the configuration files are not yet removed:

$ dpkg --list |grep "^rc"


Let’s extract out the packages marked as RC:

$ dpkg --list |grep "^rc" | cut -d " " -f 3


Now let’s remove all the packages marked as RC:

$ dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge


* RC corresponds to:

R: the package was marked for removal
C: the configuration files are currently present in the system



O autor
Minha foto Juarez Pereira
Unaí - MG, Brasil
Visualizar meu perfil completo

Nenhum comentário :

Postar um comentário