Created
September 11, 2015 15:00
-
-
Save pablodgonzalez/7cf6b0acf0485d578816 to your computer and use it in GitHub Desktop.
Reinstall package with problems
This file contains hidden or 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
arr=$(echo $(dpkg --get-selections | grep -w 'install$' | cut -f 1) | tr " " "\n") | |
for pkg in $arr; | |
do | |
apt-get install --reinstall $pkg | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment