On Sonntag, 17. Juni 2018 17:08:40 CEST Axel Braun wrote:
Hi,
we had some days ago a discussion on how to prevent postgres10 installation, as postgres96 is required: [...]
I think you are trying to solve the problem on the wrong level. Obviously, GH needs postgres in version 9.6, but how this requirement is met is out of scope for RPM. You can run PG as a local instance on a random, local port. You can run PG on a remote server or in a container on the same host. Using update-alternatives is IMHO not an option, as it would change the system default, but still does not guarantee which database version will be used, e.g. if not running on the local host. Probably, you should add a dependency on a metapackage, and provide different variants for this dependency: - one package configuring GH to use a remote PG instance - one package configuring GH to use a local PG instance, running on a randomized local port. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019