Ubuntu_User

Force removal of a debian package

In cmd-fu on July 14, 2009 at 2:12 pm

dpkg -r --force-all package_name

DISCLAIMER: Highly unsafe command. Do not attempt to use without adequate knowledge or precaution; you could end up with a broken installation.  A typical use of the command would be to reinstall a package without having to reinstall all other packages that depend on it.

Sometimes, you need to more than just remove the package; you need to purge it. Purging a package removes the package and it’s configuration files. That is achieved through this command:


dpkg --purge --force-all package_name

Versions: dpkg 1.14.24ubuntu1 (i386)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: