Gentoo Archives: gentoo-user

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

Replies

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