Skip to content

Instantly share code, notes, and snippets.

@flrngel
Created July 2, 2014 06:53
Show Gist options
  • Save flrngel/633e7478e8db890e3966 to your computer and use it in GitHub Desktop.
Save flrngel/633e7478e8db890e3966 to your computer and use it in GitHub Desktop.
for package in $(apt-get upgrade 2>&1 | grep "warning: files list file" | sed "s/.*'//; s/://"); do apt-get install --reinstall "$package"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment