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