1 |
On Thu, Nov 19, 2009 at 4:18 PM, Paul Hartman |
2 |
<paul.hartman+gentoo@×××××.com> wrote: |
3 |
> On Thu, Nov 19, 2009 at 9:20 PM, Maxim Wexler <maxim.wexler@×××××.com> |
4 |
> wrote: |
5 |
>> |
6 |
>> Hi group, |
7 |
>> |
8 |
>> emerge -av --depclean wants to remove |
9 |
>> sys-kernel/gentoo-sources-2.6.30-r7 after a world update. |
10 |
>> |
11 |
>> How do I prevent this? I've tried the --deselect and --noreplace |
12 |
>> switches but that has the opposite effect I'm looking for. |
13 |
> |
14 |
> I asked this same question earlier this year and got a perfect |
15 |
> solution from Mike Kazantsev along with help from Boris Fersing. |
16 |
> |
17 |
> Edit (or create) /etc/portage/sets.conf and put this inside: |
18 |
> [kernels] |
19 |
> class = portage.sets.dbapi.OwnerSet |
20 |
> world-candidate = False |
21 |
> files = /usr/src |
22 |
> |
23 |
> Then edit/create /var/lib/portage/world_sets and add this line: |
24 |
> @kernels |
25 |
> |
26 |
> Now --depclean should never try to remove your kernel packages! It |
27 |
> works great for me. |
28 |
|
29 |
By the way, I think this only works in portage 2.2 :) |