Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21363

rpm packages for rhel 9 from zabbix-repo have lower priority than packages from epel

    XMLWordPrintable

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 6.2.0
    • None
    • Packages (C)
    • None
    • NAME="Oracle Linux Server"
      VERSION="9.0"

      x86_64
      Red Hat Enterprise Linux release 9.0 (Ootpa)
    • Team B
    • Sprint 90 (Jul 2022), Sprint 91 (Aug 2022)

    Description

      Steps to reproduce:

      1. Install epel-release repo: dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
      2. Install zabbix-release repo: dnf install https://repo.zabbix.com/zabbix/6.2/rhel/9/x86_64/zabbix-release-6.2-2.el9.noarch.rpm
      3. Try to install zabbix-agent: dnf install zabbix-agent

      Result:

      Dnf suggests installation zabbix-agent 1:6.0.5-1.el9 from epel repo:

      Installing:
       zabbix-agent x86_64 1:6.0.5-1.el9 epel 278 k 

      Expected:
      Dnf suggests installation zabbix-agent 6.2 from zabbix repo

      It happens because zabbix-agent packages was added to epel repo for rhel 9 with Epoch: 1 set in rpm spec, but zabbix repo has no Epoch in rpm spec (if it isn't set, it equals to 0):

       

      dnf info zabbix-agent --showduplicates
      Last metadata expiration check: 0:41:20 ago on Wed 20 Jul 2022 04:57:58 AM UTC.
      Available Packages
      Name         : zabbix-agent
      Epoch        : 1  <---
      Version      : 6.0.5
      Release      : 1.el9
      Architecture : x86_64
      Size         : 278 k
      Source       : zabbix-6.0.5-1.el9.src.rpm
      Repository   : epel
      Summary      : Zabbix agent
      URL          : https://www.zabbix.com
      License      : GPLv2+
      Description  : Zabbix agent, to be installed on monitored systems
      Name         : zabbix-agent
      Version      : 6.2.0
      Release      : 1.el9
      Architecture : x86_64
      Size         : 498 k
      Source       : zabbix-6.2.0-1.el9.src.rpm
      Repository   : zabbix
      Summary      : Old Zabbix Agent
      URL          : http://www.zabbix.com/
      License      : GPLv2+
      Description  : Old implementation of zabbix agent.
                   : To be installed on monitored systems.
      

      As a workaround, we can exclude zabbix packages from epel.repo:

      [epel]
      ...
      excludepkgs=zabbix*
      

      And after that it works fine:

       

      dnf install zabbix-agent
      Installing:
       zabbix-agent x86_64 6.2.0-1.el9 zabbix 498 k
      

       

       

      Attachments

        Activity

          People

            yurii Jurijs Klopovskis
            tierpod Pavel Podkortyov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: