Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can I exclude a package from --depclean's consideration?
Date: Thu, 11 Jun 2009 18:36:21
Message-Id: 58965d8a0906111136g2dda30c2n1494868bbe8df26b@mail.gmail.com
In Reply to: Re: [gentoo-user] Can I exclude a package from --depclean's consideration? by Mike Kazantsev
1 On Thu, Jun 11, 2009 at 11:45 AM, Mike Kazantsev<mk.fraggod@×××××.com> wrote:
2 >> So, my question: Is there a way to tell depclean to never remove *any*
3 >> version of gentoo-sources?
4 >
5 > That's where portage-2.2 sets find another use.
6 > Just add following set to /usr/share/portage/config/sets.conf:
7 >
8 > [kernels]
9 > class = portage.sets.dbapi.OwnerSet
10 > world-candidate = False
11 > files = /usr/src
12 >
13 > And append "@kernels" line to /var/lib/portage/world_sets
14 > Now any installed (even with -1) kernel should be safe from ravenous
15 > depclean.
16
17 Perfect! It does exactly what I wanted. I created sets.conf in
18 /etc/portage/ as Boris pointed out.
19
20 Thank you very much for your help!

Replies

Subject Author
Re: [gentoo-user] Can I exclude a package from --depclean's consideration? David <david@×××××××××.com>