Re: dependency based boot sequencing



On Sat,05.Sep.09, 21:33:42, Charles Kroeger wrote:

Some questions: is there a command in dpkg to purge these package related
files 'after' the package has been removed?

I hacked up this little script, which i often use:

apt-get autoclean;
apt-get autoremove;
orphaner;
rm -f /var/cache/apt/archives/*.deb
dpkg --purge $(dpkg --list |grep ^rc |awk '{print $2;}');

The line you want is the last one, that i got off the net somewhere.

HTH;
Nuno Magalhães

--
() ascii-rubanda kampajno - kontraŭ html-a retpoŝto
/\ ascii ribbon campaign - against html e-mail


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: 100% used / file system. Help!
    ... As a matter of personal preference, I'm using tmpfs for /tmp, ... Given that I'll also allocate at least a few GiB's of disk space ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: /var/archive
    ... I've just moved to Debian Etch from 10 years on Mandriva, ... newbie here. ... bet is apt-get autoclean, though if that doesn't free up enough space, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • What is the apt cache good for?
    ... I can get some space back by doing apt-get autoclean. ... I'm actually busy installing stuff? ... Perhaps for deleting the packages later? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • apt-get autoclean
    ... I would recommend running ... Speaking of "apt-get autoclean", I think it would be nice to have an ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)