Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Reconfiguare all installed packages
# ------------------------------------------------------------
# Reconfiguare all *.deb installed packages
# Run dpkg-reconfigure for all dpkg -l
# USAGE insert next to terminal or run as sh script
# Be careful reconfiguration can broke your system
# ------------------------------------------------------------
for i in `dpkg -l | grep '^ii' | awk '{print $2}'`; do
echo $i; sudo dpkg-reconfigure $i;
) 2>&1 | tee dpkg-reconfigure.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment