Search code examples
phpcentos8

Cannot download RemiRepo for CentOs 8


I meet the trouble, when i try to install Remi repository for downloading php. When i use command:

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

I have an error:

    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' to use not only best candidate packages)

What i do wrong? Thanks for help!


Solution

  • I did the following to upgrade my CentOS.

    dnf -y install centos-release-stream
    dnf -y swap centos-{linux,stream}-repos
    dnf -y distro-sync