Upgrade OH 3.2 to 3.4 (latest version)

Just tried to upgrade OH 3.2 to OH 3.4 and it upgraded it to 4.x and it was a fail. I had SSD backups so I just popped in a backup and we are back to normal.

How do I upgrade from 3.2 to 3.4 (latest version) and NOT go to 4.x using openhabian-config ?

Best, Jay

You don’t with openHABian as it installs the latest packages and these are OH4.
You will have to do it manually if you really want to but I don’t see a good reason not to.

Would you mind providing the manual steps?

The only reason I’m upgrading is to get a better HUE binding version and it needs OH 3.4.

Best, Jay

You’ll need to freeze the version using apt-mark hold. There are tons of tutorials on the web.

Here’s what I did, took about 4 hours to get everything back up and running as before.

sudo apt install openhab=3.4.4-2
sudo apt --reinstall install openhab=3.4.4-2 (in case the first one errors out for whatever reason, which it did)
Download openHAB | openHAB ← download Addon’s KAR (drop in Addon directory, remove older 3.2 KAR)

Lots of restarts of Pi4
Few uninstall / reinstall of specific bindings that had errors on Things in the admin GUI console

sudo apt-mark hold openhab

** I also HELD these since they are used for some of my integrations within OH that I don’t want them upgraded during a machine upgrade.

sudo apt-mark hold speedtest-cli
sudo apt-mark hold python3

Best, Jay