Error: conflicting requests in centos 8 package installation

dhiraj asked:

I am trying to install the gdal on my centos 8. I tried with following command

sudo yum install gdal-libs

And it through me following error,

Last metadata expiration check: 0:05:58 ago on Sun 10 Jan 2021 10:52:18 PM EST.
Error:
 Problem: conflicting requests
  - nothing provides libdap.so.25()(64bit) needed by gdal-libs-3.0.4-5.el8.x86_64
  - nothing provides libdapclient.so.6()(64bit) needed by gdal-libs-3.0.4-5.el8.x86_64
  - nothing provides libdapserver.so.7()(64bit) needed by gdal-libs-3.0.4-5.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Please, anyone, suggest to me, how to solve this error?

My answer:


Installing GDAL requires both EPEL (which contains GDAL) and PowerTools (which contains some of its dependencies).

You can enable EPEL by installing its repo:

dnf -y install epel-release

PowerTools is a repo included with base CentOS. You can enable it thus:

dnf config-manager --set-enabled powertools

Now you can install GDAL successfully.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.