Ad Widget

Collapse

Conflict when updating/upgrading via yum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • netsysadmin
    Junior Member
    • Sep 2008
    • 7

    #1

    Conflict when updating/upgrading via yum

    Hello,

    Is there a defined procedure for updating/upgrading Zabbix using Yum on CentOS, apart from uninstalling it using yum -e, and then re-installing?

    The reason I'm asking is because I got similar error messages when updating from 2.4 to 3.0 and 3.0 to 3.2.

    [root@linux temp]# rpm -ivh zabbix-release-3.2-1.el7.noarch.rpm
    warning: zabbix-release-3.2-1.el7.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
    Preparing... ################################# [100%]
    file /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX from install of zabbix-release-3.2-1.el7.noarch conflicts with file from package zabbix-release-3.0-1.el7.noarch
    file /etc/yum.repos.d/zabbix.repo from install of zabbix-release-3.2-1.el7.noarch conflicts with file from package zabbix-release-3.0-1.el7.noarch
    Thank you
    Last edited by netsysadmin; 14-06-2017, 12:38. Reason: More info
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      If you are updating an installed package, there is an error in the option of the rpm command.

      Please execute as follows.
      Code:
      # rpm -Uvh zabbix-release-3.2-1.el7.noarch.rpm
      # yum clean all

      Comment

      • nameuser
        Member
        • Apr 2018
        • 39

        #4
        The same issue, but Atsushi's advise is not working

        Code:
        [root@localhost ~]# rpm -Uvh zabbix-release-3.2-1.el7.noarch.rpm
        error: open of zabbix-release-3.2-1.el7.noarch.rpm failed: No such file or directory
        [root@localhost ~]# yum clean all
        Loaded plugins: fastestmirror
        Cleaning repos: base centos-sclo-rh centos-sclo-sclo docker-ce-edge docker-ce-stable elrepo epel extras mariadb nginx remi-safe updates
        Cleaning up everything
        Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
        Cleaning up list of fastest mirrors
        Code:
        [root@localhost ~]# rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
        Retrieving https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
        Preparing...                          ################################# [100%]
                file /etc/yum.repos.d/zabbix.repo from install of zabbix-release-4.0-1.el7.noarch conflicts with file from package zabbix-release-3.2-1.el7.noarch

        Comment

        • nameuser
          Member
          • Apr 2018
          • 39

          #5
          Zabbix 3.2 was installed with downloaded .rpm's
          But now I want to update it with yum update, so I need to add official repo
          Is it possible?

          Comment

        Working...