brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: apt -s runs a simulated install or upgrade and changes nothing

Apt
~/tips/tip-apt-simulate-dry-run-s

apt -s full-upgrade

Shows what an install or upgrade would do without changing the system.

I like to see exactly what apt plans to do before it touches anything. The simulate flag prints the plan.

apt -s full-upgrade
apt -s remove nginx | grep ^Remv

-s (--simulate) walks through the whole dependency resolution and prints lines starting with Inst, Remv and Conf, without installing anything. No root is needed for a simulation, so you can run it from a normal account. The result reflects the package lists from the last apt update. Run that first or you simulate against old data. The same flag works for apt-get.

Further reading: apt-get manual page

More Apt tips sudo apt-mark minimize-manual apt list '~c' grep -E ' (install|upgrade|remove) ' /var/log/dpkg.log | tail -o Dpkg::Options::="–force-confold" upgrade sudo apt-get -d -y full-upgrade All Apt tips (42) All topics

Link