Upgrading¶
The tdx-upgrade command upgrades your toolbox container to the latest published image while preserving your installed packages.
Prerequisites¶
Enable the Podman socket on your host:
Usage¶
From inside the toolbox:
What it does¶
- Checks for updates by comparing the local image digest against the remote registry
- Pulls the latest image if an update is available
- Captures your installed RPMs so user-installed packages can be restored
- Renames the current container with a timestamp suffix (e.g.,
dev_2026-03-26-143000) as a backup - Creates a new container from the latest image using the original name
- Re-installs your RPMs in the new container (with
--skip-broken --skip-unavailablefor safety) - Enters the new container
After upgrading¶
After the upgrade, run tdx-apply to re-apply your Ansible configuration:
The config file and timestamp persist in your home directory, so auto-apply will trigger on first entry if the config exists.
Rollback¶
If something goes wrong, your old container still exists with the timestamped name: