Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reconfiguare all installed packages
#!/bin/bash
# ------------------------------------------------------------
# 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;
done
) 2>&1 | tee dpkg-reconfigure.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment