On Thu, Jun 11, 2009 at 11:45 AM, Mike Kazantsev<mk.frag...@gmail.com> 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!