Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added info about version pinning #2131

Merged
merged 9 commits into from
Nov 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ Next, resynchronize the package index:
sudo apt-get update
```

##### Installing the latest version

Now install openHAB with the following command:

```shell
Expand All @@ -128,6 +130,44 @@ If you plan on disconnecting your machine from the internet, then you will want
sudo apt-get install openhab-addons
```

##### Prevent automatic upgrade of openHAB

To prevent unexpected breakage by accidentally updating openHAB it's recommended to only manually upgrade to the newest version.
This can be achieved by putting the openHAB package on "hold".

```shell
sudo apt-mark hold openhab
sudo apt-mark hold openhab-addons
```

To enable automatic upgrades again run

```shell
sudo apt-mark unhold openhab
sudo apt-mark unhold openhab-addons
```

To show the packages on hold run

```shell
sudo apt-mark showhold
```

##### Installing a specific version

Installing a specific version is possible by specifing the version that should be installed.

```shell
sudo apt install openhab=4.0.1
sudo apt install openhab-addons=4.0.1
```

To get a list of all available versions you can use

```shell
apt list -a openhab
```

{% include collapsible/item-end.html %}
{% include collapsible/heading.html %}

Expand Down