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 zabbixYou’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.noarchInstall the repository again:
rpm -Uvh https://repo.zabbix.com/zabbix/6.2/rhel/8/x86_64/zabbix-release-6.2-1.el8.noarch.rpmClean the yum cache:
yum clean allInstall Zabbix agent
yum install zabbix-agent