On Thu, 11 Jun 2009 11:22:41 -0500 Paul Hartman <paul.hartman+gen...@gmail.com> wrote:
> "emerge --depclean" always wants to remove all but the most recent > version of gentoo-sources. I read the manpage and can't figure out how > to exclude this package. The manpage states: > > "Packages that are part of the world set will always be kept." > > However, if I have sys-kernel/gentoo-sources in world, it still wants > to remove all but the most recent version of that package, which I > think is the correct behavior... just not what I desire. It's kinda case of "italian strike" - doing the job to the letter ;) > 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. -- Mike Kazantsev // fraggod.net
signature.asc
Description: PGP signature