On Monday 16 April 2007 15:00:30 Neil Bothwick wrote: > On Fri, 13 Apr 2007 08:40:10 +0100, Neil Bothwick wrote: > > > > equery --quiet --nocolor list --duplicates gentoo-sources | awk > > > > '{print $1}' | head -n -2 | xargs --no-run-if-empty emerge > > > > --unmerge &>/dev/null > > > > > > Out of interest: > > > > > > 1) Why --duplicates (i.e. am I missing something ;). > > > > No idea, I wrote the script a couple of years ago, if I'd wanted to > > remember how it worked I'd have commented it. :) > > I remember now. If you have only one kernel installed, --duplicates > prevents it being uninstalled - quite a useful feature ;-) head -n -2 would prevent that anyway. As well as preventing the deletion from /boot and /lib/modules (where it really matters).. -- Bo Andresen