Every time I update the OpenHAB package, I need to delete userdata/etc, userdata/tmp and userdata/cache. Next recreate tmp and cache, set permissions. Then copy etc from /usr/local/share/openhab/etc (and set permissions).
If I don’t do those exact steps, then OpenHAB will remain stuck on the old version. If I skip etc (or fail to set proper permissions on it), OpenHAB won’t start and I have to delete tmp and cache again.
This is non-standard behavior. apt and yum will do all these steps for you. However, if you’ve made changes to any of the files in userdata/etc it might ask if you want to replace it with the new version in the package and for versions.properties (and most of the files really) the answer should be “yes”.
If you are using a manually installed verison, you should run the upgrade script/bat after the upgrade to do all these steps for you.