Skip to content
excelanoPublic

About

Update every package manager on a Debian machine in one command

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

upd

One command that updates every package manager and self-updating tool on a Debian machine. It runs apt first, then each other package manager and tool it covers, such as flatpak, rustup, pipx and Claude Code, skipping anything that is not installed. When it finishes it prints which updates completed and which failed, so a failure partway through a long run does not scroll past unnoticed.

Install

From the Excelano apt repository:

curl -fsSL https://excelano.com/apt/setup.sh | sudo sh   # one-time
sudo apt install upd

Once installed, upd updates itself along with everything else from apt.

Use

upd

It asks for your sudo password for apt and runs unattended after that. Firmware updates are off by default, because fwupd can stop to ask for confirmation and a reboot.

upd takes no arguments and has no flags, not even --help. Given any argument, it prints a one-line usage message to stderr and exits with status 2 before running anything, so a habitual upd --help cannot start an update.

Choosing what runs

$XDG_CONFIG_HOME/upd/config (~/.config/upd/config when XDG_CONFIG_HOME is unset) lists the updates upd runs, one name per line. The first run writes it with every update upd knows, and with firmware commented out:

apt
flatpak
#fwupd
brew

Delete or comment out a line to skip that update, and uncomment fwupd to turn firmware updates on. A package upgrade never touches the file. When an upgrade adds an update upd knows, it stays off until you add its name; the names upd recognizes are the ones in a freshly written config, which you get by moving yours aside and running upd once.

License

MIT. See LICENSE.

About

Update every package manager on a Debian machine in one command

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages