Solved – Error: Enable to find a match: zabbix-agent

This error pops up if the repository has been previously added, but not properly/partially installed, or if you don’t have the repository at all.

To ensure that we don’t already have a partially installed repository, you can run the following command:

rpm -qa | grep zabbix

You’ll likely see output similar to the following:

zabbix-release-6.2-1.el8.noarch

Remove the repository as follows:

yum remove zabbix-release-6.2-1.el8.noarch

Install the repository again:

rpm -Uvh https://repo.zabbix.com/zabbix/6.2/rhel/8/x86_64/zabbix-release-6.2-1.el8.noarch.rpm

Clean the yum cache:

yum clean all

Install Zabbix agent

yum install zabbix-agent