Last active
May 18, 2023 09:41
-
-
Save IMelker/aa80365df86c37de5bc1a05a12f9f649 to your computer and use it in GitHub Desktop.
Reconfiguare all installed packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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