Ad Widget

Collapse

Yum upgrade from 2.4 to 3.0

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

    #1

    Yum upgrade from 2.4 to 3.0

    Hello,

    I have Zabbix 2.4 installed via yum on CentOS 7.
    Can I upgrade to version 3.0 using yum?

    Thank you
  • abovebeyond
    Member
    • Dec 2015
    • 32

    #2
    Can i upgrade from 2.2.3 to 3.0 using Yum ?

    Thanks !

    Comment

    • netsysadmin
      Junior Member
      • Sep 2008
      • 7

      #3
      This is what I get when I try to install Zabbix 3.0 following the official online instructions:
      Code:
      [root@server ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
      Retrieving http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
      Preparing...                          ################################# [100%]
      	file /etc/yum.repos.d/zabbix.repo from install of zabbix-release-3.0-1.el7.noarch conflicts with file from package zabbix-release-2.4-1.el7.noarch
      [root@server ~]#

      Comment

      • pc99096
        Senior Member
        • Oct 2011
        • 193

        #4
        just upgraded from 2.4.7 to 3.0.0, centos 7, seems to be working fine.
        important thing is to remove the old 2.4 release (rpm -e zabbix-release):

        Code:
        rpm -qa | grep zabbix
        systemctl stop zabbix-server
        cp -ar /usr/share/zabbix/ /var/tmp/zabbix_web
        cp -ar /etc/zabbix/ /var/tmp/zabbix_etc
        DATABASE DUMP
        rpm -e zabbix-release
        rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
        yum update
        rpm -qa | grep zabbix
        systemctl restart zabbix-agent
        systemctl restart zabbix-server

        Comment

        • netsysadmin
          Junior Member
          • Sep 2008
          • 7

          #5
          Thank you for your reply.

          You don't lose the old configuration?

          Comment

          • pc99096
            Senior Member
            • Oct 2011
            • 193

            #6
            no


            The message you have entered is too short. Please lengthen your message to at least 10 characters.

            Comment

            • nexussentry
              Junior Member
              • Feb 2016
              • 9

              #7
              Don't Work for me

              Originally posted by pc99096
              just upgraded from 2.4.7 to 3.0.0, centos 7, seems to be working fine.
              important thing is to remove the old 2.4 release (rpm -e zabbix-release):

              Code:
              rpm -qa | grep zabbix
              systemctl stop zabbix-server
              cp -ar /usr/share/zabbix/ /var/tmp/zabbix_web
              cp -ar /etc/zabbix/ /var/tmp/zabbix_etc
              DATABASE DUMP
              rpm -e zabbix-release
              rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
              yum update
              rpm -qa | grep zabbix
              systemctl restart zabbix-agent
              systemctl restart zabbix-server
              I tried these commands and do not work for me. I update the repository but unable to update.

              Comment

              • pc99096
                Senior Member
                • Oct 2011
                • 193

                #8
                what exactly did not work? what was the error message?

                Comment

                • nexussentry
                  Junior Member
                  • Feb 2016
                  • 9

                  #9
                  No error. I send the command yum update and no update occurs. I enter the command rpm -qa | grep zabbix and the repo is 3.0 but the software is 2.4.

                  Comment

                  • nexussentry
                    Junior Member
                    • Feb 2016
                    • 9

                    #10
                    Here is an attachment of my screen.
                    Attached Files

                    Comment

                    • pc99096
                      Senior Member
                      • Oct 2011
                      • 193

                      #11
                      wow, console screenshot in a pdf file!
                      what operating system are you using?

                      you should have something like this:

                      Code:
                      # cat /etc/yum.repos.d/zabbix.repo                                                                                             
                      [zabbix]                                                                                                                                                      
                      name=Zabbix Official Repository - $basearch                                                                                                                   
                      baseurl=http://repo.zabbix.com/zabbix/3.0/rhel/7/$basearch/                                                                                                   
                      enabled=1                                                                                                                                                     
                      gpgcheck=1
                      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
                      
                      [zabbix-non-supported]
                      name=Zabbix Official Repository non-supported - $basearch 
                      baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/
                      enabled=1
                      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
                      gpgcheck=1

                      Comment

                      • Atsushi
                        Senior Member
                        • Aug 2013
                        • 2028

                        #12
                        Please try clear cache and execute update.

                        Code:
                        $ sudo yum clean all
                        $ sudo yum update

                        Comment

                        • nexussentry
                          Junior Member
                          • Feb 2016
                          • 9

                          #13
                          Thanks

                          First of all, I am new to Linux and I come from Microsoft. Next time I will write the code. And Second, I fixed the repo and it worked. Kudos. Thanks a lot.

                          Comment

                          Working...