[ofuscado] purgar paquetes eliminados ( aka rc en dpkg ) de forma
Oct 01, 2009 in Debian, Notas rápidas
Al actualizar el sistema hoy veo que ha entrado en testing la nueva version de sysv-rc que falla con estos mensajes de error :
info: Checking if it is safe to convert to dependency based boot. error: Unable to migrate to dependency based boot sequencing. error: Problems detected: package dhcdbd removed but not purged, package fam removed but not purged, package laptop-net removed but not purged, package loop-aes-utils removed but not purged, package lpr removed but not purged, package portmap removed but not purged, insserv: warning: script 'S25libdevmapper1.02' missing LSB tags and overrides, insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides, grep: /var/lib/update-rc.d/*: No existe el fichero o el directorio
Para lo cual he creado un script engendro :
dpkg --purge `dpkg -l | awk ' $1=="rc" { print $2}'`
otra variante podría ser
dpkg -l | grep "^rc" | awk '{print $2}' | xargs dpkg --purge

