Force reinstall of all Ubuntu packages

Posted . Visible to the public.

From http://ubuntuforums.org/showthread.php?t=735693 Show archive.org snapshot

  1. sudo apt-get clean
  2. paste below into reinstall_all.sh
\#\!/bin/bash   

for pkg in `dpkg --get-selections | awk '{print $1}' | egrep -v '(dpkg|apt|mysql|mythtv)'` ; do apt-get -y --force-yes install --reinstall $pkg ; done
  1. sudo chown root:root reinstall_all.sh
  2. sudo chmod 755 reinstall_all.sh
  3. sudo ./reinstall_all.sh
Ian Harris
Last edit
Tags
Posted by Ian Harris to Recruitbot (2013-10-31 14:17)