More

Excluding Zabbix from EPEL repo in RHEL/ROCKY/ALMA Linux

By Antti Hurme 03/03/2024 No Comments 2 Min Read

Now that Zabbix is a part of the EPEL repo, you might need to exclude it from the DNF configuration, if your using the official Zabbix repository. The error will be something similar to the following:

Last metadata expiration check: 0:07:36 ago on Sun 03 Mar 2024 02:54:10 PM EET.
Error:
Problem 1: package zabbix-web-deps-6.4.12-release1.el9.noarch from zabbix requires zabbix-web = 6.4.12-release1.el9, but none of the providers can be installed
- cannot install both zabbix-web-6.4.12-release1.el9.noarch from zabbix and zabbix-web-1:6.0.25-1.el9.noarch from epel
- cannot install the best update candidate for package zabbix-web-deps-6.4.7-release1.el9.noarch
- cannot install the best update candidate for package zabbix-web-6.4.7-release1.el9.noarch
Problem 2: cannot install both zabbix-web-6.4.12-release1.el9.noarch from zabbix and zabbix-web-1:6.0.25-1.el9.noarch from epel
- package zabbix-web-deps-6.4.12-release1.el9.noarch from zabbix requires zabbix-web = 6.4.12-release1.el9, but none of the providers can be installed
- package zabbix-web-pgsql-1:6.0.25-1.el9.noarch from epel requires zabbix-web = 1:6.0.25-1.el9, but none of the providers can be installed
- package zabbix-nginx-conf-6.4.12-release1.el9.noarch from zabbix requires zabbix-web-deps = 6.4.12-release1.el9, but none of the providers can be installed
- cannot install the best update candidate for package zabbix-web-pgsql-6.4.7-release1.el9.noarch
- cannot install the best update candidate for package zabbix-nginx-conf-6.4.7-release1.el9.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Edit the repository config: /etc/yum.repos.d/epel.repo, and add an exclude in the [epel] repository configuration:

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
### Blacklist zabbix package ###
exclude=zabbix-*

run “dnf clean all” and “dnf update” again to check if the problem is solved.

Excluding Zabbix when Updating

Use the following command to exclude all Zabbix packages when updating;

dnf update -x zabbix-*
Tags /
Written By

Who am I? | Linkedin

View All Articles
V
U
Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.