Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Any consequences to package.mask'ing newer kernels?
Date: Fri, 13 Apr 2007 00:17:28
Message-Id: 200704130212.05425.bo.andresen@zlin.dk
1 On Friday 13 April 2007 01:59:47 Neil Bothwick wrote:
2 > > Provided you have gentoolkit something as simple as this works:
3 > >
4 > > # emerge -Cva $(equery -q list gentoo-sources | head -n -2)
5 >
6 > That only cleans out /usr/src, it's slightly different to what I use
7 > (which rm's the directories first to speed things up) but does basically
8 > the same. You also need to clear out /lib/modules and /boot with
9
10 True.
11
12 > Here's the script I use, which is guaranteed to work when it doesn't
13 > fail. When it does break, you can keep the pieces.
14 [SNIP]
15 > equery --quiet --nocolor list --duplicates gentoo-sources | awk '{print $1}' | head -n -2 | xargs --no-run-if-empty emerge --unmerge &>/dev/null
16
17 Out of interest:
18
19 1) Why --duplicates (i.e. am I missing something ;).
20 2) Why the awk? Is there ever more than one column without --no-pipe ?
21 --
22 Bo Andresen

Replies

Subject Author
Re: [gentoo-user] Any consequences to package.mask'ing newer kernels? Neil Bothwick <neil@××××××××××.uk>