Saturday, July 06, 2013

How to re-install a deb package with all dependencies

Sometimes I installer newer versions of software and then break my package configuration under Debian or Ubuntu.

Just re-installing one package is easy, but often I need to re-install all the dependencies as well.

I broke monodevelop so to fix it I use....


  sudo apt-cache depends monodevelop | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs -d "\n" sudo apt-get -reinstall -install -y

No comments:

Translate