Hello,
Today I was attempting to install postGIS packages (among many other things) on my newly-installed almalinux 8.5 server. I succeeded, but to do so I had to register my server with Redhat, and I don’t understand why that would be necessary. Perhaps you folks can tell me where I went astray and what to do differently?
My initial attempts failed due to lack of “libgdal.so.30”:
[root@geo1 ~]# dnf install postgis32_14.x86_64 postgis32_14-client.x86_64 . . .
. . .
Error:
Problem 1: package postgis32_14-client-3.2.0-1.rhel8.x86_64 requires libgdal.so.30()(64bit), but none of the providers can be installed
- cannot install the best candidate for the job
- nothing provides libdap.so.25()(64bit) needed by gdal34-libs-3.4.0-1.rhel8.x86_64
- nothing provides libdapclient.so.6()(64bit) needed by gdal34-libs-3.4.0-1.rhel8.x86_64
- nothing provides libdapserver.so.7()(64bit) needed by gdal34-libs-3.4.0-1.rhel8.x86_64
When I installed postGIS on a RHEL 8.5 Server, these prerequisites came from the “Red Hat CodeReady Linux Builder for RHEL 8” repository. The almalinux wiki tells me that this is the almalinux “Powertools” repository, which I need to ‘activate’ via:
dnf config-manager --set-enabled powertools
So I tried that and got the following results:
[root@geo1 ~]# dnf config-manager --set-enabled powertools
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
[root@geo1 ~]#
Similar verbiage accompanies all my failed dnf install attempts. So, I installed the subscription-manager packages via dnf, and tried to register. It failed several times with a certificate verification error until I disabled checking in /etc/rhsm/rhsm.conf. Then I got the following:
[root@geo1 ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: me
Password:
The system has been registered with ID: 5f4a17a7-aa02-4c0b-80cb-d6059824c75c
The registered system name is: geo1
[root@geo1 ~]# dnf config-manager --set-enabled powertools
Updating Subscription Management repositories.
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
After that, I was able to install my postGIS packages, with a whole bunch of prerequisites coming from the “Powertools” repository. But now, my almalinux server is listed as one of the sixteen I’m allowed to have via my free “RedHat Individual Developer” subscription!
So, is this the only way I can use the “PowerTools” repository in almalinux ?? It kind of defeats the purpose of installing almalinux is the first place! When I ran subscription-manager, I would’ve hoped that I would be registering or subscribing or whatever with some entity within almalinux rather than Redhat, but when I look at /etc/rhsm/rhsm.conf all I see is RedHat this and Redhat that.
Does almalinux have a way to enable the “Powertools” (and perhaps other) repositories that does not involve subscribing/registering with Redhat?