Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IMelker/aa80365df86c37de5bc1a05a12f9f649 to your computer and use it in GitHub Desktop.
Save IMelker/aa80365df86c37de5bc1a05a12f9f649 to your computer and use it in GitHub Desktop.
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