Not everything in my Debian template is installed with apt, so I created this short script to update also flatpak and uv tool applications. I hope this is useful for others.
#!/bin/bash
# Run all updates.
# Run this script with sudo.
# Clean up from time to time.
#rm -rf /var/lib/apt/lists/*
# I use Debian Onion repos and they're sometimes down, YMMV.
apt update
# bash strict mode from here; we'll update with whatever we got.
set -euo pipefail
# APT
apt upgrade -y
apt autoremove
apt clean
# flatpak
all_proxy=http://127.0.0.1:8082/ flatpak update -y
# `uv tool`
HTTPS_PROXY=127.0.0.1:8082 UV_TOOL_BIN_DIR=/opt/sw/systemowned/uv/bin \
UV_TOOL_DIR=/opt/sw/systemowned/uv/tools uv tool upgrade --all
#TODO:
# - docker containers
# - Neovim/LazyVim plugins
# - someday/maybe: workaround for Brave Browser extensions and blocklists