Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

* * * * * 2 votes

How to completely uninstall apps by Terminal in Ubuntu


  • Please log in to reply
No replies to this topic

#1 Guest_Khiam_*

Guest_Khiam_*

  •  Avatar image
  • Guests
  • OFFLINE
  •  

Posted 18 September 2020 - 07:33 AM

Hello, Ubuntu users.
 
Today I will present how to make a complete uninstall by Terminal (formerly command line) for the applications you want removed.
 
Here we go :
 
1. Open Terminal and gain admin rights by the command below. Then, type your login password.

sudo su

2. List your installed apps/packages. It will display a long list.

dpkg --list

3. Uninstall the app and keep its configuration files (if you want to make a reinstall later).

 

I replaced the package name with your_app. Replace it with the name you want from your list (see the Name column).

sudo apt-get remove your_app

For example firefox :

sudo apt-get remove firefox

4. Completely uninstall the app.

sudo apt-get --purge remove your_app

Example :

sudo apt-get --purge remove firefox

EXTRA TIP

 

5. Remove unnecessary dependencies, or remnants left behind by obsolete apps.

sudo apt-get autoremove

The steps in this tutorial is not specific only for old versions of Ubuntu, it works on the newer versions of Ubuntu as well.

 

Commands used in this presentation :

  • sudo to gain admin rights, or superuser tasks
  • dpkg list to list the installed apps
  • remove along with apt-get to uninstall apps, and keep configuration files
  • remove along with purge to completely uninstall the app
  • autoremove to remove unnecessary dependencies, or left-overs remained from old apps

Enjoy it !



BC AdBot (Login to Remove)

 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users