Centos7 yum can't upgrade

Hi,

I’ve got OH2 installed on a Centros 7 via Unstable repository. I now want to upgrade to OH3 Unstable so I run a yum upgrade. I’t states there are no packages to be upgraded. With a yum install openhab it states theres a conflict.

Version:     2.5.12 (Build)

User:        openhab (Active Process 1032)
User Groups: openhab tty dialout lock audio

Directories: Folder Name      | Path                        | User:Group
             -----------      | ----                        | ----------
             OPENHAB_HOME     | /usr/share/openhab2         | openhab:openhab
             OPENHAB_RUNTIME  | /usr/share/openhab2/runtime | openhab:openhab
             OPENHAB_USERDATA | /var/lib/openhab2           | openhab:openhab
             OPENHAB_CONF     | /etc/openhab2               | openhab:openhab
             OPENHAB_LOGDIR   | /var/log/openhab2           | openhab:openhab
             OPENHAB_BACKUPS  | /var/lib/openhab2/backups   | root:root
[root@openhab tmp]# yum install openhab
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.xtom.nl
 * epel: mirror.nsc.liu.se
 * extras: mirror.sitbv.nl
 * remi-php73: mirror.veriteknik.net.tr
 * remi-safe: mirror.veriteknik.net.tr
 * updates: mirrors.supportex.net
Resolving Dependencies
--> Running transaction check
---> Package openhab.noarch 0:3.1.0~S2394-1 will be installed
--> Processing Conflict: openhab-3.1.0~S2394-1.noarch conflicts openhab2
--> Finished Dependency Resolution
Error: openhab conflicts with openhab2-2.5.12-1.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

I already did a yum clean all, any idea why OH3 can’t start install?

Regards,
Bastiaan

Hi @bastiaan_van_h,

Have a look at the migration page for recommendations on what to do before and after the migration, the page will tell you that the yum command to change packages is:

sudo yum swap openhab2 openhab
2 Likes