PDF download Download Article
Safely remove programs and packages from your Ubuntu system
PDF download Download Article

Need to remove a program you've installed on your Ubuntu system? You have several options, and they are all very easy. This tutorial will teach you how to remove software packages from Ubuntu Linux from the terminal using apt or apt-get , through a GUI using App Center, removing snaps and Flatpacks, and many more options. We'll also show you how to clean up unneeded configuration files and orphaned dependencies for a complete uninstall.

Uninstalling an Application in Ubuntu Linux

  • To uninstall an application in the terminal, use sudo apt remove <package_name> .
  • To see a list of installed packages, type dpkg -l and press Enter.
  • To use a GUI to uninstall software, open App Center , click Installed to see installed software, select a program to uninstall, and click Remove .
  • You can also uninstall snaps and Flatpak packages from the terminal.
Method 1
Method 1 of 9:

Uninstall a Program with Apt

PDF download Download Article
  1. Alternatively, you can open a Terminal by searching for it in Activities view. [1]
  2. To uninstall a program, you will need to find the name of the package. To see a list of all installed DEB packages , type dpkg -l into Terminal, then press Enter . [2]
    • If you are looking for a specific package, you can use grep to search the results of the package list. For example, if you're looking for bind, use dpkg -i | grep bind to find all packages containing that string.
    • Another option is to use sudo apt list .
    • If you want to see which files are in the package you'll be removing, use the command dpkg -L packagename .
    Advertisement
  3. This command will uninstall the software but keep the configuration files in case you want to reinstall. For example, if you want to uninstall LibreOffice, you'd type sudo apt remove libreoffice and press Enter .
    • If you want to get rid of the configuration files as well, use sudo apt purge packagename instead. [3]
    • When prompted, press y and then Enter to confirm.
    • To clean up the cache and remove any unneeded dependencies post-uninstall, use sudo apt clean && sudo apt autoremove .
  4. Advertisement
Method 2
Method 2 of 9:

Uninstall an Application in App Center

PDF download Download Article
  1. If you want to uninstall a graphical program, whether installed from a DEB or Snap package, you can use the App Center in Ubuntu. To open it, click the App Center in the dock, or search for it in Activities view. [4]
    • If another application on the system requires the application you are uninstalling, both applications will be removed.
  2. This displays all installed applications you can remove with App Center.
  3. When prompted, enter your password to confirm. This uninstalls the selected application from Ubuntu.
  4. Advertisement
Method 3
Method 3 of 9:

Uninstall a Program with Snap

PDF download Download Article
  1. Alternatively, you can open a Terminal by searching for it in Activities view. [5]
  2. To uninstall a snap, you will need to find the name of the package. You can do so easily in a Terminal by typing snap list and pressing Enter .
    • If you have a lot of snaps installed, you can search for a specific program using grep. For example, to find the Firefox snap, you'd use snap list .
    • Snaps with green checkmarks were created by verified developers. [6]
  3. Enter your password when prompted, and the snap will be uninstalled from Ubuntu.
  4. Advertisement
Method 4
Method 4 of 9:

Uninstall a Program with Flatpak

PDF download Download Article
  1. Alternatively, you can open a Terminal by searching for it in Activities view. [7]
  2. To list both applications and runtimes you've installed, type flatpak list and press Enter . If you only want to see installed applications, type flatpak list --app and press Enter |. [8]
    • Search for a specific program using flatpak list | grep name .
  3. This will uninstall the program but leave the associated data in ~/.var/app/ in case you ever want to install it again.
    • If you want to remove the associated app data as well, use flatpak uninstall --delete-data program_name . [9]
    • For example, if you want to uninstall GIMP and all associated user data, use flatpak uninstall --delete-data org.gimp.GIMP .
    • If you want to remove runtimes and extensions that aren't being used by other programs, use flatpak uninstall --unused . [10]
  4. Advertisement
Method 5
Method 5 of 9:

Uninstall a Program with Synaptic Package Manager

PDF download Download Article
  1. If you want to uninstall a package in Ubuntu, you can use Synaptic. Type synaptic into Activities view to get started–you will be prompted to enter your password to open the package manager. [11]
  2. You will see this option in the left panel.
  3. Repeat this for each piece of software you want to uninstall. [12]
    • This will only remove the selected program(s) and not the associated user data. If you also want to delete user data, select Mark for Complete Removal instead.
  4. Alternatively, you can use the keyboard shortcut Ctrl + P . This deletes the selected programs from Ubuntu Linux.
  5. Advertisement
Method 6
Method 6 of 9:

Uninstall a Program in Ubuntu Software

PDF download Download Article
  1. If you're using an older version of Ubuntu (before Ubuntu 16.04), you can uninstall software using Ubuntu Software. Type ubuntu software into Activities view to find it.
  2. This tab is at the top of the Ubuntu Software window.
  3. Scroll through the list of installed programs until you arrive at the one that you want to uninstall, or type the name of an installed program into the search bar in the top-right corner of the window.
  4. It's to the right of the program that you want to uninstall. [13]
    • If asked to confirm, click Remove again, or click OK .
  5. Advertisement
Method 7
Method 7 of 9:

Uninstall a Standalone .DEB Package

PDF download Download Article
  1. Alternatively, you can open the Terminal by searching for it in Activities view. [14]
    • You can use this method if you want to uninstall a DEB package you installed using any method.
    • This method will only uninstall the package and not any dependencies. If you also want to remove the dependencies, use Apt instead.
  2. To uninstall a program, you will need to find the name of the package. To see a list of all installed DEB packages, type dpkg -l into Terminal, then press Enter . [15]
    • If you are looking for a specific package, you can search the results. For example, if you're looking for GIMP, use dpkg -i | grep gimp to find all packages containing that string.
    • If you want to see which files are in the package you'll be removing, use the command dpkg -L packagename .
  3. To do so, type dpkg -r package_name and press Enter . The software is now removed from Ubuntu.
  4. Advertisement
Method 8
Method 8 of 9:

Uninstall Orphaned Dependencies

PDF download Download Article
  1. Alternatively, you can open a Terminal by searching for it in Activities view. [16]
    • Use this method to uninstall orphaned packages, which are packages that were automatically installed as dependencies while installing other software but are no longer needed.
    • This method will also remove old kernels–all except the one you're currently using.
  2. To do this, type sudo apt autoremove and press Enter . After you enter your password to confirm, Apt will look for and remove any dependencies that aren't required by software on your computer.
  3. If you uninstalled packages without purging their configuration files, you can purge all leftover configuration files at once with this command:
    • dpkg -l | grep "^rc" | awk '{print $2}' | sudo xargs dpkg -P
  4. Advertisement
Method 9
Method 9 of 9:

Remove a Repository and Its Packages

PDF download Download Article
  1. If you added a repository to install software on Ubuntu, you can use this method to uninstall all software you installed from that repository, as well as remove the repository itself.
    • If you installed a nightly build of software that came with Ubuntu, like VLC, the original version will be restored. [17]
  2. If you don't remember it, you can see which repository you installed software from using the command apt policy package_name .
  3. This command will remove the repository and uninstall any packages you installed from it. If earlier versions of the software came with Ubuntu, the software will be reverted to those versions. The syntax for the command is sudo ppa-purge ppa:repositoryname/
    • For example, if you installed Firefox and want to remove the Mozilla repository and uninstall the version of Firefox you got from it, you would use sudo ppa-purge ppa:mozillateam/ppa .
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Can I remove an operating system that l run?
    Community Answer
    You can wipe your hard drive or you can install another OS on the same disk. During the installation wizard, remove the other OS (see the respective manual online).
  • Question
    Can I uninstall Ubuntu and install Windows without a CD?
    Somone
    Community Answer
    You may be able to use a USB pen drive.
  • Question
    How do I uninstall Skype?
    Community Answer
    Go to Control Panel>Hardware & Programs>Edit or Uninstall Programs.Then just find Skype, right click it, and select "Uninstall."
See more answers
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Article Summary X

      1. Open the Ubuntu Software Center.
      2. Click the Installed tab.
      3. Scroll to the program you want to remove.
      4. Click Remove .
      5. Click Remove to confirm.

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 1,279,217 times.

      Is this article up to date?

      Advertisement