If the application has been installed via the package manager, all you have to do is run

sudo apt-get remove <application_name>

That should always work. If the terminal isn't what stirs your tea, you could open System → Administration → Synaptic Package Manager, search for the package you want to remove, click on the checkbox next to it and select "mark for removal". Once you click "Apply", the package should be removed. There's of course also the Ubuntu Software Center. It's pretty much the same thing as Synaptic. Just search for the application name and click the "Remove" button.

Sometimes applications can be split up into multiple packages (for example, many games have a separate package for their music). To make sure that you uninstall all related packages AND configuration files, you can type

sudo apt-get purge <package-name>

or -in Synaptic- "mark for complete removal" instead of just "mark for removal".

As for applications that have been manually compiled and installed, there's not always a single way to remove them. The best thing to do is consult the README/INSTALL file that accompanied the source package - if one exists.

Answer from Tommy Brunn on askubuntu.com
🌐
How-To Geek
howtogeek.com › home › linux › how to uninstall software using the command line in linux
How to Uninstall Software Using the Command Line in Linux
August 12, 2024 - On Fedora Linux, the "sudo dnf remove [package_name]" command will uninstall the package. Linux distributions provide different methods for installing software. You can install software from the standard Ubuntu or Fedora software repositories ...
Top answer
1 of 12
376

If the application has been installed via the package manager, all you have to do is run

sudo apt-get remove <application_name>

That should always work. If the terminal isn't what stirs your tea, you could open System → Administration → Synaptic Package Manager, search for the package you want to remove, click on the checkbox next to it and select "mark for removal". Once you click "Apply", the package should be removed. There's of course also the Ubuntu Software Center. It's pretty much the same thing as Synaptic. Just search for the application name and click the "Remove" button.

Sometimes applications can be split up into multiple packages (for example, many games have a separate package for their music). To make sure that you uninstall all related packages AND configuration files, you can type

sudo apt-get purge <package-name>

or -in Synaptic- "mark for complete removal" instead of just "mark for removal".

As for applications that have been manually compiled and installed, there's not always a single way to remove them. The best thing to do is consult the README/INSTALL file that accompanied the source package - if one exists.

2 of 12
78
  • The software centre: find the package, click remove

  • Synaptic : the same


  • apt-get:

      sudo apt-get remove <package> && sudo apt-get autoremove
    
  • aptitude:

      sudo aptitude remove <package>
    

It's important to note that when you install things, they often depend on other packages. When you fire off apt-get remove <package> it doesn't remove the automatically-installed applications by default. This is often safer (if you're temporarily removing something like ubuntu-desktop) but this can mean you end up with a load of cruft.

aptitude will automatically remove things (as well as having a nice interactive command line interface)

You can also search for cruft in synaptic using the "local or obsolete" filter under the status section.

Discussions

Uninstall Linux apps using terminal - Chromebook Community
Skip to main content · Chromebook Help · Sign in · Google Help · Help Center · Community · Chromebook · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
April 16, 2023
debian - How can I uninstall packages from the command line on Ubuntu? - Unix & Linux Stack Exchange
I am wondering how one would uninstall software from the command line/terminal. What commands would I use? More on unix.stackexchange.com
🌐 unix.stackexchange.com
November 9, 2013
installation - uninstalling on linux - Stack Overflow
I'm new to compiling and installing programs on linux. I understand the common process is to do ./configure make make install I'd like to know if there is some way I can "rollback" if I make a m... More on stackoverflow.com
🌐 stackoverflow.com
What is the proper way to uninstall software on Linux

>I also want to remove any leftovers from my system after uninstall btw.

Then you'll have to manually clean all leftovers from your home.

Just run apt remove and don't care about the rest.

More on reddit.com
🌐 r/linux4noobs
21
95
March 13, 2020
🌐
nixCraft
cyberciti.biz › nixcraft › howto › linux › linux uninstall package / software using the cli
Linux uninstall package / software using the CLI - nixCraft
September 8, 2022 - For example, to remove the nginx package and leave all config files as it is on disk, run: $ sudo apt remove nginx #### OR ##### $ sudo apt-get remove nginx Finally verify that nginx has been removed or uninstalled from the system, run: $ dpkg ...
🌐
nixCraft
cyberciti.biz › nixcraft › howto › linux › linux delete and uninstall software command
Linux Delete and Uninstall Software Command - nixCraft
September 8, 2022 - Explains how to delete and uninstall software on popular Linux distros using a command such as apt, zypper, dnf/yum, apk and more.
🌐
Google Support
support.google.com › chromebook › thread › 211306991 › uninstall-linux-apps-using-terminal
Uninstall Linux apps using terminal - Chromebook Community
April 16, 2023 - Skip to main content · Chromebook Help · Sign in · Google Help · Help Center · Community · Chromebook · Terms of Service · Submit feedback · Send feedback on
Find elsewhere
🌐
It's FOSS
itsfoss.com › uninstall-programs-ubuntu
How to Uninstall Applications from Ubuntu Linux
September 4, 2023 - You know that you can use apt-get install or apt install for installing applications. For uninstalling, you don’t use the apt-get uninstall command but apt-get remove or apt remove.
🌐
Wikihow
wikihow.com › computers and electronics › operating systems › linux › ubuntu › how to uninstall ubuntu software and packages: easy guide
How to Uninstall Ubuntu Software and Packages: Easy Guide
February 19, 2026 - Click Apply to uninstall the selected software. Alternatively, you can use the keyboard shortcut Ctrl+P. This deletes the selected programs from Ubuntu Linux.
🌐
Broadcom
ftpdocs.broadcom.com › cadocs › 0 › CA Performance Center 2 3 3-Linux-ENU › Bookshelf_Files › HTML › capc_Install_ENU › 1855000.html
Uninstall on Linux from the Command Line
You can uninstall CA Performance Center by running the Uninstallation program from a command prompt in Console mode. ... Log in to the server as root, or use the sudo account you have configured for the installation. Navigate to the Uninstall_PerformanceCenter program.
🌐
VITUX
vitux.com › how-to-uninstall-programs-from-your-ubuntu-system
How to Uninstall Programs from your Ubuntu System – VITUX
June 6, 2023 - You have learned that there are two ways to uninstall the software from your Ubuntu system: via the Ubuntu Software Manager and via the command line. From the command line, you can remove the software and keep all configuration files (apt-get remove) or remove the software altogether (apt-get ...
🌐
Linux Hint
linuxhint.com › uninstall-softwares-linux-mint
How to Uninstall Software in Linux Mint – Linux Hint
There are four ways to uninstall the software on Linux Mint including through Software Manager, Applications Menu, Synaptic Package Manager, and Terminal.
🌐
LinuxConfig
linuxconfig.org › home › ubuntu uninstall package tutorial
Uninstall Package Ubuntu: GUI & Command Line Guide
September 22, 2025 - Learn to uninstall Ubuntu packages via GUI or command line. Explore methods for Snap packages and cleaning unwanted files.
🌐
Liquid Web
liquidweb.com › home › remove package in ubuntu: linux how to uninstall
Remove Package in Ubuntu: Linux How to Uninstall | Liquid Web
June 2, 2025 - If Git was used, this step is very straightforward for how to uninstall a program on Linux. Snapd provides an easy method to install or uninstall software. From the command line, you can use the following commands to locate the software:
🌐
Oracle
docs.oracle.com › cd › E19159-01 › 819-3670 › auto19 › index.html
To Run the Uninstallation Program on UNIX or Linux (Sun Java System Application Server 9.1 Installation Guide)
Documentation Home > Sun Java System ... UNIX or Linux · Sun Java System Application Server 9.1 Installation Guide · Previous: Chapter 1 Installing Application Server Software · Next: To Run the Uninstallation Program on Windows · Make sure that you have stopped all domains and other related processes, command prompts using ...
Top answer
1 of 4
4

Agree with other answers, and I wanted to clarify a bit. If my understanding is correct, typically ./configure is a script that makes sure / sets up your system so that compilation will go correctly. Then make runs a Makefile that actually compiles. Then make install runs the makefile with install as a parameter that actually copies your binaries and config files to the appropriate (as determined by the script author) system directories, which is why often make install must be run with elevated privileges.

Often the make script takes an uninstall parameter that actually erases everything that was copied to system directories. In my experience, this isn't always going to be a clean process. There's no fireproof way to roll back without ensuring yourself that all changes are tracked perfectly and writing the rollback script yourself.

In short, try make uninstall and if that doesn't work and you can't figure it out yourself, try posting on a mailing list or forum pertaining to the particular product in question.

Edit for more info: just running make should get you everything you need to run a program, as long as you keep your working directory as wherever you ran make from. That is, make will create all your binaries and config files, etc, and you can use the software fine from that directory. You won't have any globally accessible binaries or proper environment variables, though, if you don't copy things to system directories, such as with make install. So if you're just trying to run a self-contained binary that isn't software that something else will rely on, you don't actually need to run make install and won't have to worry about rolling back. Everything will be contained within your original working directory.

2 of 4
2

If make unistall does not make the trick then you have to remove the files on your own (except if there is an unistall script.

One good way to avoid all the mess is to use the checkinstall after installing something from source. This way it will create also a package file for your system meaning that you will be able to unistall the software from the package manager e.g. apt-get remove my_software.