This generally applies to any port which has different major version V like category/nameV. Such packages can not only NOT be installed together, a newer version can't even be built (
make package
insists on installing the named package). Specifically I want to pg_upgrade
from databases/postgresql10-server to databases/postgresql12-server. The upgrade itself went easy (I used PG-12 built in a custom location just for pg_upgrade to run), but then I need to de-install the old server and install the new one properly as a system package. And this involves spending time on building the port first (we need custom port build options and can't use pre-built packages which use default port options), although theoretically building a port and making a package out of it should be possible regardless of what is currently installed. Is there a clean way around this? I don't really want to risk building PG-12 on another dummy machine, making the package and copying it for installation. Or is this the only feasible way?