distrobox-upgrade1
Usage
distrobox upgrade
Overview
distrobox-upgrade will enter the specified list of containers and will perform an upgrade using the container’s package manager.
Examples
Upgrade all distroboxes
-
distrobox-upgrade --all
Upgrade all running distroboxes
-
distrobox-upgrade --all --running
Upgrade a specific distrobox
-
distrobox-upgrade alpine-linux
Upgrade a list of distroboxes
-
distrobox-upgrade alpine-linux ubuntu22 my-distrobox123
Automatically update all distro
You can create a systemd service to perform distrobox-upgrade automatically, this example shows how to run it daily:
~/.config/systemd/user/distrobox-upgrade.service
-
[Unit] Description=distrobox-upgrade Automatic Update [Service] Type=simple ExecStart=distrobox-upgrade --all StandardOutput=null
~/.config/systemd/user/distrobox-upgrade.timer
-
[Unit] Description=distrobox-upgrade Automatic Update Trigger [Timer] OnBootSec=1h OnUnitInactiveSec=1d [Install] WantedBy=timers.target
Then simply do a systemctl --user daemon-reload && systemctl --user enable --now distrobox-upgrade.timer
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.