How to Uninstall a .deb Package

debpackage-management

Suppose I download a .deb package from a website and install it. (I assume that when I double click the .deb file, the package is installed through a GUI that interfaces with dpkg right?)

How can I uninstall it?

Best Answer

Manually installed packages appear in the Software Centre, along with all the others. Just search the software centre for your package and remove it there.

You may have to click on "Show N technical items"

alt text

Along with this, there are a few other methods:

Synaptic:

  • Go to System → Administration → Synaptic Package Manager
  • Click the Status button and select "Installed (local or obsolete)"
  • Right click a package and select "mark for removal".
  • Click the Apply button.

    This will have the benefit of listing all of your manually installed packages:

alt text

Command Line

  • You can either use sudo apt-get remove packagename if you know the name of the package, or if you don't, search for it using apt-cache search crazy-app and then remove it using apt get

  • You can also use dpkg --remove packagename.

@GorgeEdison it's a security risk! :P @EveryoneElse, never mind I'm kidding :)

This will also let you know if there are any unneeded packages left on your system, which were possibly installed as dependencies of your .deb package. Use sudo apt-get autoremove to get rid of them.