dpkg

To force delete a package, run

List all Installed packages

List all files in a package

To find which package provide a file

Apt