Re: removed but not purged
Hi Andreas,
On Thu, Nov 28, 2002 at 09:57:14AM +0100, Andreas Metzler wrote:
> J. Woch <woch@gmx.de> wrote:
[...]
> > sorry, das habe ich unglücklich ausgedrückt. Mein Ziel ist ein
> > nachträgliches "purge" bereits "removed"er Pakete.
>
> COLUMNS=300 dpkg --list | egrep '^rc ' | \
> sed -e 's/^rc *\([^ ]*\) .*/\1/' > /tmp/liste
> less /tmp/liste
> dpkg --purge `cat /tmp/liste`
>
> Das 'egrep | sed' ist haesslich, aber ich kann kein awk und cut
> funktioniert bei Tabellen, deren einzelne Felder durch _mehrere_
> Leerzeichen getrennt sind, nicht verlaesslich.
COLUMNS=300 dpkg --list | egrep '^rc' | awk '{ print $2 }' > /tmp/liste
Sieht schöner aus, hab damit auch ein paar noch nicht gepurgte Pakete
gefunden.
Gruß
KH
--
// In a world without walls and fences who needs Windows and Gates ? //
Reply to: