Daniel Frey wrote: > On 6/20/19 11:10 AM, Dale wrote: >> Kai Peter wrote: >>>> >>>> The bad thing about this, sometimes I have to use exclude >>>> gentoo-sources >>>> from things such as --depclean. It's annoying but it's the only way I >>>> could come up with to do this. >>>> >>> You can do an 'emerge --noreplace' - one time. >>> >> >> >> I read the man page for this option, I'm not sure how it would help. >> All that does is prevent it from recording that it is installed in the >> world file. Since I have -1 set as a default, it does that when I >> emerge single packages already. If I want to keep it and it not be >> --depcleaned, then I use -n --select y to add it to the world file. >> Thing is, some packages require some sort of kernel to be installed as a >> dependency last I checked. >> >> Or am I missing something? >> > > 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. > > Dan > >
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. Me confused. :/ Dale :-) :-)