142

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?

125

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.

  • aerofs-installer-0 (aerofs.com) did not appear in U.S.C., only in the command line and in synaptic. Any idea why? – nutty about natty Oct 20 '13 at 5:51
65

The command to facilitate that is:

sudo dpkg -r package_name
  • 29
    or dpkg --purge package_name to erase configuration files as well. – Tom Jan 19 '11 at 1:20
8

Open up Ubuntu Software Center (Applications -> Ubuntu Software Center) and search for the package you want to uninstall, and click on the Remove button:

alt text

Or from the command line:

sudo apt-get remove <package-name>
3

If your want to remove the package and all configuration files related to it:

sudo aptitude purge packagename
3

Use -r with dpkg.

See this blogpost for more information.

1

The installed package will be visible in both Synaptics and software center. In the former one, it will appear under local packages and in the latter one under other.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.