Skip to content

Instantly share code, notes, and snippets.

@jslmorrison
jslmorrison / update_toolboxes.sh
Last active May 9, 2026 09:27
A small bash script to update all toolbox containers on a Fedora Silverblue. Assumes all toolbox containers are fedora based distros.
#!/usr/bin/env bash
set -euo pipefail
# Fetch the list of toolbox container names (skip header row)
containers=$(toolbox list --containers 2>/dev/null | awk 'NR>1 {print $2}')
if [[ -z "${containers}" ]]; then
echo "No toolbox containers found."
exit 0
fi