Openhabian how to do a fresh install with openhab version 4.2.2

  • Platform information:
    • Hardware: Mini-PC with x86-architecture
    • OS: Debian 12 installed in an Proxmox environment
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: 4.2.2
  • Issue of the topic: how to select the openhab 4.2.2 for the fresh installation
  • Currently i am running Openhab 4.2.2 on a Raspi 4 / 4GB
    *i want to change my hardware and have bought a ACEMAGIC S1 with 16 GB and 500GB SSD
    I already did a test installation with proxmox, debian 12+openhabian (at this time it was openhab 4.1) and a view other services like influxdb and mqtt.
    It was running quite well.
    Now i want to install everthing new to a get really fresh system.
    The issue now is
    how to select in openhabian the Openhab 4.2.2 version for the fresh installation
    as my productive system is also running 4.2.2 and do not want to upgrade it to 4.3 in my current production invironment.

I don’t think openHABian supports this directly but if you fix the version to 4.2.2 with apt openhabian-config will install that version.

There is no way to pick which version openHABian initially installs. But once openHABian finishes setting up the machine, you can fix the version using apt and do an apt upgrade and that should install the fixed version and keep at that version until you change to a different version.

Thanks Rick,
i check the link you provided, sound a bit complicated but will give it a try during the next days

downgrade was successful! Thanks to Rick for the instruction.

Following steps i have done:
created a proxmox LXC with debian12
Installed openhabian:

git clone -b openHAB https://github.com/openhab/openhabian.git /opt/openhabian
ln -s /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config
cp /opt/openhabian/build-image/openhabian.conf /etc/openhabian.conf
sudo nano /etc/openhabian.conf
  change hostname
openhabian-config unattended

Installed was openhab 4.3.1
now the downgrade needs to be done:
here it might be good to stop the openhab service

apt list --all-versions openhab
sudo apt install openhab=4.2.2-1
sudo apt install openhab-addons=4.2.2-1

restart openhab
Finally the backup from the production needs to be imported:
The file for restore should be /boot/initial.zip

sudo openhabian-config
04 Import config

After a restart openhab was available with with version 4.2.2 and the configuration from the production system.

1 Like