note · linux

Removing a package while breaking dependencies

To remove a single package from a Debian-based system without dragging the whole dependency chain along:

dpkg --force-depends --purge package_name

And to install it back:

apt-get install package_name

Replace package_name with your package.

_Originally published in April 2015._

published 04/2015 tags: dpkg · apt · debian linux →

← back to explore