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

Reply via email to