How to Uninstall Packages from Ubuntu with APT, Snap, and App Center

How to Uninstall Packages from Ubuntu with APT, Snap, and App Center

An app selected in App Center’s Manage view is a concrete target for removal. I’m curious what package removal leaves behind once that app is gone.

Explore how Ubuntu’s package managers track apps beyond the App Center view. Notice the package type shown for the selected app.

Package removal depends on how Ubuntu installed the app

APT manages Debian packages, while Snap manages Snap packages. Ubuntu App Center gives you a graphical way to remove an installed application, and the available controls depend on your Ubuntu release.

Installed copyUseWhat to review
APT or downloaded DEBAPTCheck the package name and removal proposal before deciding whether to purge configuration.
SnapSnapCheck the Snap name and whether removal should create a data snapshot.
App Center listingManage, then UninstallRead any dependency warning and check the listed package type.

Ubuntu’s current LTS release lists DEB and Snap applications side by side in App Center, according to Ubuntu’s desktop release notes. A downloaded DEB filename can differ from its installed package name, so use the package manager’s listing when the GUI does not identify it.

See how a downloaded DEB is installed on Ubuntu when the filename is all you have. The same app can have separate APT and Snap copies.

Slack’s Linux package formats show why an app name alone does not identify the copy you are about to remove.

APT and Snap keep separate installed-package lists. Finding a name in one does not mean the other copy is gone.

Find the installed package name first

Use the name APT or Snap reports, not a launcher label you guessed. These read-only commands check the installed package lists.

  1. Search APT’s installed list for the package. This example filters for tree.
  2. Check the Name column in Snap’s list if the application came from a Snap.
apt list --installed 2>/dev/null | grep -i '^tree/'
snap list

In APT output, the package name comes before the slash. The text after it identifies the archive or package state and version.

This search only matches tree. Replace tree with part of the package name you are looking for. The installed-package reference shows other APT search options.

If neither manager lists the app, it may be a standalone AppImage rather than an APT package or Snap. AppImages on Linux run outside those package lists.

Remove an APT package after reviewing the plan

APT’s simulation option previews a package operation without applying it, as the Ubuntu APT manual explains. Read the full proposal and stop if it names software you still need.

sudo apt remove --simulate tree
APT simulation preview shows tree as the package to remove and lists auto-removable dependencies separately.
APT marks tree for removal and lists auto-installed dependencies separately in this preview.

I ran the simulation for tree. APT listed tree for removal and displayed automatically installed packages that were no longer required in a separate notice.

I chose to review that second list on its own because autoremove is not part of removing the named package.

The simulation is the last safe point to catch an unexpected dependency. If APT proposes removing an application or package you rely on, cancel instead of running the live command.

When the proposal contains only packages you intended to remove, run the same command without the simulation option.

sudo apt remove tree

APT remove may leave modified package configuration behind. Purge removes tracked configuration too, but it does not touch files under your home directory, as the Ubuntu package-management documentation explains. See the APT remove-versus-purge guide for the package-state details.

sudo apt purge tree

Autoremove proposes automatically installed packages that APT no longer needs as dependencies, according to the Ubuntu APT manual. Its list can still include software you want to keep.

sudo apt autoremove --simulate

Run the simulation first and read each package name. A package installed automatically can still be something you rely on.

Remove a Snap and decide whether to keep its data

Snap uses the name shown by snap list. Removing a Snap normally saves a snapshot of its data so you have a restore point after the app is removed.

snap list
sudo snap remove firefox
sudo snap remove --purge firefox
snap saved
Command choiceSnapshot behavior
snap remove firefoxRemoves the Snap and creates an automatic data snapshot.
snap remove –purge firefoxRemoves the Snap without creating a new automatic snapshot.
snap savedLists snapshots already stored by snapd.

Snap’s data-snapshot documentation says automatic removal snapshots are retained for 31 days. The purge option only prevents a new snapshot. It does not delete existing sets, so check the saved list before you discard an older restore point.

The Set column identifies each saved snapshot group. The snap forget command permanently deletes the selected set, so use it only when that restore data is no longer needed.

Uninstall an application in App Center

App Center lists installed applications under Manage, and it asks before removing one that another app requires.

  1. Open App Center from the Dock or search for Software in Activities.
  2. Choose Manage in the sidebar, then find and select the installed application.
  3. Choose Uninstall and enter your password when App Center asks.
  4. Read the dependency warning before confirming. Cancel if the list includes an app you still use.

Ubuntu’s App Center documentation gives the Manage-to-Uninstall path, while its desktop release notes confirm DEB and Snap listings.

A reported Ubuntu Noble issue describes a third-party DEB with a disabled Installed control. If your App Center has no Uninstall action for a DEB, use APT with its package name instead.

App Center can also show a dependency confirmation before removal. The warning names the additional applications that would go with the selected app.

Check your Ubuntu version when App Center’s controls differ.

Package removal does not erase every user file

The package manager controls package files and tracked configuration. Personal files saved in your home directory follow a separate path.

ActionWhat it removes or keeps
apt removeRemoves the package. Modified package configuration may remain. Home-directory files are outside this package cleanup.
apt purgeRemoves tracked configuration in system directories. It does not remove files saved in your home directory.
apt autoremoveTargets automatic dependencies APT no longer needs. Inspect the proposed package list first.
snap removeRemoves the installed Snap and normally creates a snapshot of its data.
snap remove –purgeSkips a new automatic snapshot. Existing snapshot sets remain.

Some applications save preferences in your home directory, outside APT’s package records. The package manager cannot tell whether those files still contain settings or data you want.

Review the dependency list before cleanup

If APT proposes removing an application you still need, cancel the operation. The simulation lets you inspect the autoremove proposal without changing package state.

sudo apt autoremove --simulate

Run cleanup only after the list contains packages you are ready to remove. APT’s package list determines what the command will remove, not the word “unused.”

Ubuntu package removal questions

The search phrase “apt uninstall” does not match APT’s command syntax.

Can I use apt uninstall to remove a package?

No. APT uses remove or purge for a named package. Use apt remove to remove the package, or apt purge when you also want APT to remove tracked package configuration.

Does snap remove –purge delete snapshots that already exist?

No. The –purge option prevents a new automatic snapshot during removal. Older snapshot sets remain, so check them with snap saved before you decide whether to forget one.

Why does App Center show Installed without an Uninstall button?

The available App Center controls depend on the Ubuntu release and package source. An Ubuntu Noble App Center issue documents a third-party DEB whose Installed control was not clickable. Use APT with the installed package name when the GUI does not offer Uninstall.