In some cases, when you trying to install Remi repository for downloading PHP 7.4 on CentOS 8. You get the following error:
# sudo dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Extra Packages for Enterprise Linux 8 - x86_64
Extra Packages for Enterprise Linux Modular 8 - x86_64
Last metadata expiration check: 0:00:20 ago on Fri 28 Oct 2022 09:06:32 AM EDT.
remi-release-8.rpm
Error:
Problem: conflicting requests
- nothing provides redhat-release >= 8.6 needed by remi-release-8.6-1.el8.remi.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest')
When we check the CentOS version, it says running Centos Linux 8.5.2111.
# cat /etc/centos-release
CentOS Linux release 8.5.2111
CentOS Linux 8.5 was discontinued at the end of 2021, so you have not received nearly six months of security updates in that time. It would appear that the error you are currently seeing is that the package requires a package from 8.6 and there will never be a CentOS Linux 8.6.
CentOS Linux 8 latest version is 8.5, but is no more supported, you have to switch to an alternative:
- CentOS 8 Stream, see how to switch.
- RHEL 8 (free subscription available).
- Alma Linux
- Rocky Linux
- or some other RHEL clones
We tried to upgrade the CentOS 8 Linux to Centos Stream 8.
# cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
Once done, we can install the remi repository without any issue.
# sudo dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Last metadata expiration check: 0:19:59 ago on Fri 28 Oct 2022 01:12:12 PM UTC.
remi-release-8.rpm
Dependencies resolved.
Install 1 Package
Total size: 29 k
Installed size: 24 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
Installing : remi-release-8.6-1.el8.remi.noarch
Verifying : remi-release-8.6-1.el8.remi.noarch
Installed:
remi-release-8.6-1.el8.remi.noarch
Complete!
# ls -l /etc/yum.repos.d/ | grep remi
-rw-r--r--. 1 root root 1825 May 23 14:56 remi-modular.repo
-rw-r--r--. 1 root root 1448 May 23 14:56 remi.repo
-rw-r--r--. 1 root root 810 May 23 14:56 remi-safe.repo
ADVERTISEMENT
5/5 - (1 vote)