I've recently upgraded my PostgreSQL Server from 9.2 to 9.4. With these changes, I've updated a PostgreSQL Utilities RPMs POM.xml from
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<require>postgresql92-postgresql</require>
to
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<require>rh-postgresql94-postgresql</require>
and the new RPMs are installed as a pre-requisite to installing the utilities package.
What's the best way to yum-remove the old RPMs? (postgresql92-postgresql)
Should I just add it to the post-install script or can I do this via POM.xml as I have done to install the RPMs?