it would be useful to be able to run something like: ebuild /path/to/ebuild clean install check-collisions in order to check for file system collisions before running qmerge.
Not as easy as it may sound as this code is deep embedded in the merge code and intended to be called standalone. So adding such a new command to ebuild(1) qould require some nasty hacker that I'd like to avoid, or some major restructuring that isn't going to happen anytime soon. As a workaround you can use the following pre_pkg_preinst hook in /etc/portage/bashrc: pre_pkg_preinst() { if [ "$PORTAGE_CALLER" == "ebuild" -a -n "$ONLY_CHECK_COLLISIONS" ]; then die "just checking for collisions" fi } and instead of `ebuild ... check-collisions` call `ONLY_CHECK_COLLISIONS=1 ebuild ... qmerge`