Debian system forced removal of the package skills

  

Debian system, some packages can not be deleted for some reason, very troublesome when cleaning up the garbage, in addition to strong removal through some software, but also through the command to force Remove the package, and follow the small series to understand.

Because the package will depend on some of the problems can not be uninstalled normal, suggesting a bunch of errors. At this time, you can force the uninstallation.

The apt package manager's database is located in the /var/lib/dpkg directory. Assuming the package name that needs to be unloaded is foo, execute the following command:

# cd /var/lib/dpkg/info

# rm foo.*

# aptitude purge Foo (maybe #dpkg purge foo can also, not tried)

The file to which the package belongs can be deleted directly from the hard disk

The above is the method of Debian forced removal of the package, if your The software cannot be cleaned up with its own uninstallation, and can be strongly uninstalled using the commands described in this article.

Copyright © Windows knowledge All Rights Reserved