On Thu, 20 Jun 2019 22:08:03 -0500 Dale <rdalek1...@gmail.com> wrote:
> Daniel Frey wrote: > > Yep. --select and --noreplace both record the package specified in > > the world file. The difference is you use --noreplace when the > > package specified is already installed, this prevents it from being > > reinstalled (it will record it in the world file without > > reinstalling the package.) > > > > If you know you want to keep it (as in: have --oneshot as a default > > option) and you use --select, it will record it in the world file > > and install the package. > That's what I do now tho. I'm trying to figure out how this is > different since it ends with the same result. The reason I have to > add --exclude gentoo-sources to --depclean is so that it won't remove > kernels I still have installed and may even be using or keeping as a > fall back. I've tried different ways to accomplish this, except for > the one Neil posted, and any of them has some sort of issue that has > to be addressed in one way or another. Putting the kernel versions you want to keep into @world by slot will keep them from being depcleaned. E.g., if depclean wants to get rid of gentoo-sources-4.19.44 but you want to keep it, use # emerge --noreplace sys-kernel/gentoo-sources:4.19.44 Note the colon. Neil's method is better, as once you implement it you never have to do anything again.