-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency error with yum on CentOS 8 #2691
Comments
A small followup. Using this command:
the dependency error will disappear, and timescale can install under CentOS. Nonetheless, it would be better to correct the dependencies, as "postgresql12 >= 12" does not make much sense to begin with. The solution would be to alter the SPEC file for timescale, changing
to
This will still work with the RPMs as provided by postgres in their PGDG repos, but will also enable using the version of Postgresql provided in RHEL/CentOS 8 through appstream. I'd happily test this for both approaches and do a PR, but the .spec file for the RPM packege is not in the repository. On a sidenote: the RPMs are advertised as signed, while they actually are not. |
Any hope for a resolution for this issue? It should be an easy fix an will help ease deployment of timescale in RHEL environments, cause RedHat provides support on postges as long as it is deployed via appstream. |
Unfortunately your suggested solution would break when system postgres is disabled. https://serverfault.com/questions/411444/rpm-set-required-somepackage-0-5-0-and-somepackage-0-6-0 |
Thanks for looking in to this. We looked a bit further and were able to find and fix the issue. It actually lies with the PGDG packages, which ignore version constraints.
actually works. All RHEL8/AppStream postgresql versions respect this (tested on all versions). However, not all PGDG versions respect this:
Solution
This is compatible for RHEL8/AppStream and PGDG repos as well. Notes
Setup for PGDG
Setup for AppStream
Setup for AppStream using same datadir as PGDG Background I created a postgresql12-appstream meta-package and tested any possible Requires & Conflicts constraints (many rpmbuild actions). Results for all RHEL8/AppStream postgresql versions using extreme tests/variants are OK. However, the (external) PGDG packages ignore version constraints.
Problem here is, any version of postgresql-server will match
Problem here is, any version >= 11 of postgresql-server will match (12 too!); even stranger, Requires: postgresql-server < 11 matches too(!) for some reason
Problem here is, any version >= 12 of postgresql-server will match (13 too!); but not stranger here, Requires: postgresql-server < 12 will not match (which is OK) Side note I noticed timescaledb-postgresql-12 leaves files around not owned by any package:
Maybe nice to make those files really part of the package ... And last but not least, we would appreciate GPG-signed packages. |
Any chance for a follow-up on this one? The provided solution should work as-is. |
Hmm those conflict lines will prevent the installation of multiple major postgres versions, i guess you cant do that with the system package but you certainly can with the packages from the PGDG repo. |
You can leave out any 'Conflicts:' statements as you see fit; the approach will still be an easy way to allow Timescale to work with both Appstream and PGDG on CentOS/RHEL. Would be great to have this! |
RHEL 8.4 appstream modules includes postrgresql versions through 13.3, Any chance we can get timescale to work with it? |
We are installing postgresql from RHEL8 appstream too, Would be nice to have the possibility to install TimescaleDB from a repository... |
As this topic looks like it has started sleeping, is there any progress to support the RHEL provided (and especially supported) PostgreSQL packages? |
Just to add to this: I have run into the same with RHEL 9.3 provided PostgreSQL as well:
|
Would also appreciate if timescaledb would be usable with RHEL8 or RHEL9 postgresql appstream |
System:
When trying to install TimescaleDB on CentOS 8, I get an error with yum. I installed postgres 12 as provided by the os:
dnf module enable postgresql:12
and thendnf install postgresql-server
. Then when trying to install timescale I get: "nothing provides postgresql12 >= 12 needed by timescaledb-postgresql-12-1.7.4.0.el8.x86_64". I believe this could be fixed by changing the dependency of the package to "postgresql >= 12".The text was updated successfully, but these errors were encountered: