On Sun, Mar 31, 2013 at 8:09 AM, Walter Dnes <waltd...@waltdnes.org> wrote:
>> What do you mean by sane depclean? Are there any problems with
>> --depclean that I am not aware of?
>
>   emerge -p --depclean
>
> generates dire warnings.  I keep a previous version of the kernel
> (gentoo-sources) as a fallback, and --depclean wants to remove that,
> which I want to keep.

Quoted below is a solution that was posted to this list a few years
ago, I use it for exactly that situation: to prevent kernels from ever
getting depcleaned.

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.

Hope that helps!

Reply via email to