Skip to content

Instantly share code, notes, and snippets.

@pablodgonzalez
Created September 11, 2015 15:00
Show Gist options
  • Save pablodgonzalez/7cf6b0acf0485d578816 to your computer and use it in GitHub Desktop.
Save pablodgonzalez/7cf6b0acf0485d578816 to your computer and use it in GitHub Desktop.
Reinstall package with problems
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