[ZBX-21363] rpm packages for rhel 9 from zabbix-repo have lower priority than packages from epel Created: 2022 Jul 20  Updated: 2024 Apr 10  Resolved: 2022 Nov 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Packages (C)
Affects Version/s: 6.2.0
Fix Version/s: 6.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Pavel Podkortyov Assignee: Jurijs Klopovskis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

NAME="Oracle Linux Server"
VERSION="9.0"

x86_64
Red Hat Enterprise Linux release 9.0 (Ootpa)


Issue Links:
Duplicate
is duplicated by ZBX-21612 RPM repository broken on AlmaLinux/RH... Closed
is duplicated by ZBX-21865 Zabbix 6.0 LTS install from repo fail... Closed
Team: Team B
Sprint: Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022)
Story Points: 0.125

 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

 

 



 Comments   
Comment by Jurijs Klopovskis [ 2022 Oct 26 ]

Bumping the epoch will not solve the main problem of having incompatible Zabbix packages mixed from different sources which is no good.

Suggest using the proposed workaround of excluding Zabbix packages in epel repo.

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

[epel]
...
excludepkgs=zabbix*
Comment by Nathan Liefting [ 2023 Mar 06 ]

Just noticed this on Centos stream 8 today. Zabbix 6.0.13 is being pulled from EPEL instead of Zabbix repo.

 

Zabbix professional training VM was used.

Comment by Jurijs Klopovskis [ 2023 Mar 06 ]

See section a in https://www.zabbix.com/download?zabbix=6.0&os_distribution=alma_linux&os_version=9&components=server_frontend_agent&db=mysql&ws=apache

a. Install Zabbix repository

Disable Zabbix packages provided by EPEL, if you have it installed. Edit file /etc/yum.repos.d/epel.repo and add the following statement.
{{ [epel]}}
...
excludepkgs=zabbix*

Can you have a look, and update the Training VMs, kaspars.mednis ?

Comment by Kaspars Mednis [ 2023 Mar 07 ]

Yes, will do. Thanks for reporting!

Generated at Wed May 21 06:35:10 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.