From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MEp8P-0004w2-Is for garchives@archives.gentoo.org; Thu, 11 Jun 2009 18:36:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 172D7E049D; Thu, 11 Jun 2009 18:36:20 +0000 (UTC) Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.152]) by pigeon.gentoo.org (Postfix) with ESMTP id E312AE049D for ; Thu, 11 Jun 2009 18:36:19 +0000 (UTC) Received: by yw-out-1718.google.com with SMTP id 5so6413076ywm.46 for ; Thu, 11 Jun 2009 11:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jdovAXMAW3wXxdGvLmbJppXtya8TseGAxJHNAGaXtfA=; b=g0jnGBNptCpEeC41tRSDk4jVvLxD26y2Z8vrkx3KicEMeHQzLRoq6kJra/8YW3ahsp B+FCuR2FPAFlsGjbfIR61B7SWFtZCQ1CqaKvyzJ7Ub9xHYsif06EkaJ4rGH/o+6DsTkv fBktQ5c0vugiMP+849HTvORIvVGBzmVw9BycE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=VEqh1IpH3gmqpX0zCYG5HnkxfidTyVE91nbYUfCrIuBHIeeAhSb8kyOpUbFKAVu6qh K4eksgR1hqF2B7pmgmQcFSR6urTtFgFIrbBHNvv1mkYGsscBKBH67Exlkh9HjuLmprSQ Yis4o4naMsbAuZ5ukHMWBrgHRUOptK5S30Pb8= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.151.73.1 with SMTP id a1mr5713302ybl.95.1244745379160; Thu, 11 Jun 2009 11:36:19 -0700 (PDT) In-Reply-To: <20090611224525.4467a4e9@coercion> References: <58965d8a0906110922u39145b35w8850b1a2767c4b43@mail.gmail.com> <20090611224525.4467a4e9@coercion> Date: Thu, 11 Jun 2009 13:36:19 -0500 X-Google-Sender-Auth: 8737513b96d5f6da Message-ID: <58965d8a0906111136g2dda30c2n1494868bbe8df26b@mail.gmail.com> Subject: Re: [gentoo-user] Can I exclude a package from --depclean's consideration? From: Paul Hartman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 4479936d-2718-4768-a056-4a5faf879292 X-Archives-Hash: b3390759d1065a2d5e866d3e7b0f87b2 On Thu, Jun 11, 2009 at 11:45 AM, Mike Kazantsev wrote: >> So, my question: Is there a way to tell depclean to never remove *any* >> version of gentoo-sources? > > That's where portage-2.2 sets find another use. > Just add following set to /usr/share/portage/config/sets.conf: > > [kernels] > class = portage.sets.dbapi.OwnerSet > world-candidate = False > files = /usr/src > > And append "@kernels" line to /var/lib/portage/world_sets > Now any installed (even with -1) kernel should be safe from ravenous > depclean. Perfect! It does exactly what I wanted. I created sets.conf in /etc/portage/ as Boris pointed out. Thank you very much for your help!