On Thu, Nov 19, 2009 at 9:20 PM, Maxim Wexler <maxim.wex...@gmail.com>
 wrote:
>
> Hi group,
>
> emerge -av --depclean wants to remove
> sys-kernel/gentoo-sources-2.6.30-r7 after a world update.
>
> How do I prevent this? I've tried the --deselect and --noreplace
> switches but that has the opposite effect I'm looking for.

I asked this same question earlier this year and got a perfect
solution from Mike Kazantsev along with help from Boris Fersing.

Edit (or create) /etc/portage/sets.conf and put this inside:
[kernels]
class = portage.sets.dbapi.OwnerSet
world-candidate = False
files = /usr/src

Then edit/create /var/lib/portage/world_sets and add this line:
@kernels

Now --depclean should never try to remove your kernel packages! It
works great for me.

Reply via email to