EnterpriseDB/repmgr

Repmgr 5.2.1 rpm naming convention

Closed this issue · 2 comments

Hi,

We notice a change is naming convention of repmgr rpm from 5.2.1. Any reason behind this? Is this going to be standard going forward?

Till 5.2.0 —> repmgr11-5.2.0-1.rhel7.x86_64.rpm
From 5.2.1 —> repmgr_11-5.2.1-1.rhel7.x86_64.rpm ( “_“ in between repmgr and postgres release version)

Challenge with this is, the new version is obsoleting all the previous packages. Its not allowing to install 5.0.0.

I've both repmgr11-5.2.0-1.rhel7.x86_64.rpm and repmgr_11-5.2.1-1.rhel7.x86_64.rpm in the repo

# yum search repmgr
Loaded plugins: changelog, verify, versionlock
====================================================================== N/S matched: repmgr =======================================================================
repmgr11.x86_64 : Replication Manager for PostgreSQL Clusters
repmgr_11.x86_64 : Replication Manager for PostgreSQL Clusters

# yum list repmgr11.x86_64
Loaded plugins: changelog, verify, versionlock
Available Packages
repmgr11.x86_64                                                                 5.0.0-1.rhel7                                                                 @dse

# yum list repmgr_11.x86_64
Loaded plugins: changelog, verify, versionlock
Installed Packages
repmgr_11.x86_64                                                                5.2.1-1.rhel7                                                                 @dse

I'm trying to install repmgr11-5.0.0-1.rhel7, but repmgr_11-5.2.1-1.rhel7.x86_64 is getting installed.

# yum install repmgr11-5.0.0-1.rhel7
Loaded plugins: changelog, verify, versionlock
Package repmgr11 is obsoleted by repmgr_11, trying to install repmgr_11-5.2.1-1.rhel7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package repmgr_11.x86_64 0:5.2.1-1.rhel7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================================
 Package                                 Arch                                 Version                                     Repository                         Size
==================================================================================================================================================================
Installing:
 repmgr_11                               x86_64                               5.2.1-1.rhel7                               dse                               277 k

Transaction Summary
==================================================================================================================================================================
Install  1 Package

Any suggestion/fix for this?

Thanks,
Sunny.

Hi

We notice a change is naming convention of repmgr rpm from 5.2.1. Any reason behind this? Is this going to be standard going forward?

This appears to be a policy change in the PGDG community repository; see commit ba535ce9.

I'm trying to install repmgr11-5.0.0-1.rhel7, but repmgr_11-5.2.1-1.rhel7.x86_64 is getting installed.

Untested, but try adding the option --setopt=obsoletes=0 to the yum command.

Any suggestion/fix for this?

The 2ndQuadrant (EDB) repository has not made this change in this respect, so as a workaround you could use that; see: Installing repmgr from packages for details.

Regards

Ian Barwick

Closing as no further response received.