How To Uninstall Software From Ubuntu

9 min read

Uninstalling software on Ubuntu is a fundamental skill that every user, from beginners to seasoned system administrators, needs to master. Understanding these methods gives you granular control over your system, ensuring you reclaim disk space effectively and avoid leaving behind broken dependencies or configuration clutter. Now, unlike proprietary operating systems where a single "Add or Remove Programs" window handles everything, Linux offers a variety of paths to achieve the same goal. Whether you prefer the safety of a graphical interface or the speed and precision of the terminal, this guide covers every reliable way to remove applications on Ubuntu.

The official docs gloss over this. That's a mistake.

Understanding Package Management in Ubuntu

Before diving into the commands, it helps to understand what you are uninstalling. Ubuntu software typically comes in a few distinct formats, and the removal method depends heavily on the source Worth keeping that in mind. That alone is useful..

  • APT (Advanced Packaging Tool) / .deb packages: These are the traditional, native packages downloaded from the official Ubuntu repositories. They are managed via apt, apt-get, or dpkg.
  • Snap packages: Developed by Canonical, these are self-contained applications bundled with their dependencies. They run in a sandbox and are managed via the snap command or the Snap Store.
  • Flatpak packages: A universal packaging format similar to Snaps but distribution-agnostic, often sourced from Flathub. Managed via the flatpak command.
  • Manually installed software: Binaries downloaded as .AppImage files, scripts run via curl | bash, or software compiled from source code (make install). These do not have a central database and must be removed manually.

Knowing which format an application uses is the first step toward a clean removal.

Method 1: Using the Ubuntu Software Center (GUI)

For users who prefer a visual approach, the Ubuntu Software center (formerly Ubuntu Software Center) is the most accessible entry point. It handles both .deb (APT) packages and Snap packages without friction Took long enough..

  1. Click the Show Applications grid icon (usually bottom-left or top-left depending on your dock settings).
  2. Search for and open Ubuntu Software.
  3. Click the Installed tab at the top navigation bar.
  4. You will see a list of all installed applications. Scroll or use the search bar to find the target program.
  5. Click the Uninstall button next to the application name.
  6. Authenticate with your user password when prompted.

Pro Tip: If an application appears twice in the list (once with a Snap badge, once without), it means you have both the Snap and the APT version installed. You should uninstall both if you want the software completely gone.

Method 2: The Terminal – APT and APT-GET (Native Packages)

The command line is the most powerful way to manage native .deb packages. It provides feedback that GUIs often hide, such as which dependencies will be removed alongside the main package.

Basic Removal

To uninstall a package but keep its configuration files (useful if you plan to reinstall later and want your settings preserved):

sudo apt remove package-name

Complete Removal (Purge)

To delete the package and its system-wide configuration files (located usually in /etc), use the purge command. This is the closest equivalent to a "clean uninstall" on other operating systems.

sudo apt purge package-name

Cleaning Up Orphaned Dependencies

When you install a package, apt often pulls in dependencies (libraries required for the software to run). When you remove the main package, those dependencies often remain installed, taking up space. To remove these "orphaned" packages automatically:

sudo apt autoremove

It is highly recommended to run this command periodically. You can combine the purge and cleanup into a single powerful command:

sudo apt purge package-name && sudo apt autoremove

Finding the Exact Package Name

If you aren't sure of the exact package name (e.g., is it vlc, vlc-player, or vlc-bin?), search the local database:

apt list --installed | grep -i keyword

Replace keyword with part of the application name. This returns the exact package identifier required for the remove command.

Method 3: Removing Snap Packages via Terminal

Snap packages are managed independently of apt. Even if you remove an app via Ubuntu Software, verifying via terminal ensures the specific revision data is cleared.

List Installed Snaps

First, see what you have installed:

snap list

Remove a Snap

To uninstall a snap application:

sudo snap remove package-name

Understanding Snap Revisions

Snaps keep older versions (revisions) of applications to allow rollbacks. Over time, these consume significant disk space. To see all revisions (including disabled ones):

snap list --all

You will see entries marked as disabled in the Notes column. To remove a specific old revision:

sudo snap remove package-name --revision=REVISION_NUMBER

To automatically clean up all disabled revisions for all snaps (saving gigabytes of space), you can use a small loop command:

snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do sudo snap remove "$snapname" --revision="$revision"; done

Method 4: Removing Flatpak Applications

If you have installed applications from Flathub (common on Ubuntu flavors or if you added the repository manually), you must use the flatpak command.

List Installed Flatpaks

flatpak list

Uninstall a Flatpak

flatpak uninstall application-id

The application-id usually looks like a reverse domain name (e.g., org.libreoffice.LibreOffice or com.spotify.Client) Worth keeping that in mind..

Clean Up Unused Flatpak Data

Similar to apt autoremove, Flatpak stores runtimes (shared libraries) that may become orphaned. To remove unused runtimes and data:

flatpak uninstall --unused

Method 5: Handling Manually Installed Software

Not all software comes through a package manager. Here is how to handle the outliers Not complicated — just consistent..

AppImage Files

AppImages are standalone executable files. There is no database entry.

  1. Locate the .AppImage file (often in ~/Applications, ~/Downloads, or /opt).
  2. Delete the file.
  3. Optionally, delete the desktop integration file created in ~/.local/share/applications/ if you integrated it.

Software Compiled from Source (make install)

If you compiled software using ./configure, make, sudo make install, there is no automatic uninstaller unless the developer provided one That's the whole idea..

  1. manage back to the original source code directory (the folder where you ran make).
  2. Run:
    sudo make uninstall
    
    Note: This only works if the Makefile includes an uninstall target. Many do not.
  3. If make uninstall fails or doesn't exist, you must manually track down the files. Check the Makefile for the prefix variable (usually /usr/local) and look for install directives to see where files were copied. Tools like checkinstall (used during installation instead of make install) create a .deb package, making future removal trivial via apt.

Third-Party Repositories (PPAs)

If you added a PPA (Personal Package Archive) to install a specific version of an app, simply removing the app via apt purge leaves the repository enabled on your system. To completely remove the PPA and downgrade/remove its packages:

sudo apt install ppa-purge
sudo p

pa-purge ppa:username/ppa-name

Replace ppa:username/ppa-name with the exact PPA identifier shown by apt policy or found under /etc/apt/sources.d/. Still, this disables the PPA and attempts to downgrade any packages installed from it back to the versions available in the official repositories. list.If no official version exists, those packages are removed.

sudo apt update

Method 6: Cleaning Up Residual Files and Configuration

Uninstalling a package does not always remove everything it created. Configuration files, caches, logs, and user-specific data can remain in your home directory or under /etc It's one of those things that adds up..

Purge Residual Package Configuration

For Debian packages, apt remove leaves configuration files behind. Use purge when you want them gone:

sudo apt purge package-name

To find packages that are already removed but still have residual configuration files:

dpkg -l | grep '^rc'

You can purge them in one pass:

dpkg -l | grep '^rc

' | awk '{print $2}' | xargs sudo apt purge

This command lists the removed packages with residual configs, extracts their names, and purges them.

### User-Specific Data
Beyond system files, applications often create user data in your home directory:
- **Config files**: `~/.config/application-name/`
- **Cache**: `~/.cache/application-name/`
- **Local share**: `~/.local/share/application-name/`
- **Hidden directories**: Look for folders starting with a dot (e.g., `~/.application-name`)

To remove these:
1. So open your file manager and deal with to the locations above. 2. Still, delete the application-related folders. Use the search function to find any remaining files.

For command-line users, you can use `rm` with caution:
```bash
rm -rf ~/.local/share/application-name ~/.Also, config/application-name ~/. cache/application-name ~/.application-name

*Warning: Double-check paths to avoid deleting important files That's the whole idea..

System-Wide Logs and Spool Files

Some services leave logs in /var/log/ or spool files in /var/spool/. Check:

  • /var/log/application-name.log
  • /var/spool/application-name/

Remove them with:

sudo rm -rf /var/log/application-name.log /var/spool/application-name/

Desktop Integration Files

If you previously integrated an AppImage or a custom script, don't forget to remove:

  • Desktop files: ~/.local/share/applications/application-name.desktop
  • Menu entries: Check your desktop environment's application menu for leftovers.

Method 7: Utilizing Dedicated Uninstallation Tools

Several tools simplify the uninstallation process, especially for software without standard methods:

Stacer

A comprehensive system cleaner that tracks installed packages and provides a clean uninstall interface It's one of those things that adds up. Surprisingly effective..

sudo apt install stacer

Launch Stacer from the application menu, manage to the "Uninstaller" tab, select the application, and click "Uninstall."

BleachBit

A powerful disk space cleaner and privacy tool that can remove applications and their traces.

sudo apt install bleachbit

Open BleachBit, go to the "Files" tab, and use the "Delete" feature to remove application folders and files Not complicated — just consistent. And it works..

AppImageLauncher

Specifically for AppImages, this tool integrates them into the system and provides an uninstall option Easy to understand, harder to ignore..

sudo apt install appimagelauncher

After installation, open AppImageLauncher, find the AppImage in the list, and choose "Uninstall."

Conclusion

Uninstalling software on Linux requires a systematic approach to ensure complete removal. ) and check for residual files in user directories and system logs. By following the methods outlined—whether using package managers, manual deletion, or specialized tools—you can maintain a clean and efficient system. Regular cleanup prevents clutter and potential conflicts, ensuring your Linux environment remains stable and responsive. Always verify the software's installation method (Debian package, AppImage, source compilation, etc.Remember, when in doubt, use package-specific uninstall commands or community-recommended tools to avoid leaving behind orphaned files But it adds up..

Still Here?

New Picks

Curated Picks

Neighboring Articles

Thank you for reading about How To Uninstall Software From Ubuntu. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home