How to change and try LTS, stable, daily?

I followed installation instructions at GitHub - zabbly/incus: Incus package repository

What is the correct method to switch between the LTS, stable, daily repos after installing a version to test on a host?

To uninstall / remove incus I run
#apt purge incus*
and then I delete the zabbly file that was creating during install /etc/apt/sources.list.d/zabbly-incus-*

Then to install I follow the above zabbly github instructions again.

After uninstalling incus and installing a different repo release version I might be missing pre-existing containers when using incus list. What would be the steps to retain the containers and storage files when uninstalling incus and installing a new version?

You can always upgrade, but downgrading may not be possible due to changed database schemas. So going from stable to LTS may not work - you’ll need to install them in separate places.

1 Like

If you leave the storage contents alone, then incus admin recover can pick up the containers from the storage.

But as far as I know, there’s no guarantee that the stored metadata between LTS and stable/daily will be both forwards and backwards compatible.

So I would suggest that you don’t switch back and forth between them, if the contents of your containers and VMs matter. Pick either LTS or stable and use that for your production containers. If you want to test daily, do it on a different system (or in a VM)