www.fosslinux.com Open in urlscan Pro
2604:a880:400:d0::4bfe:a001  Public Scan

URL: https://www.fosslinux.com/3534/how-to-completely-uninstall-applications-by-command-line-in-ubuntu.htm
Submission Tags: falconsandbox
Submission: On December 24 via api from US — Scanned from DE

Form analysis 5 forms found in the DOM

GET https://www.fosslinux.com/

<form method="get" class="td-search-form" action="https://www.fosslinux.com/">
  <div class="td-search-close"> <a href="#"><i class="td-icon-close-mobile"></i></a></div>
  <div role="search" class="td-search-input"> <span>Search</span> <input id="td-header-search-mob" type="text" value="" name="s" autocomplete="off"></div>
</form>

GET https://www.fosslinux.com/

<form method="get" class="tdb-search-form" action="https://www.fosslinux.com/">
  <div class="tdb-search-form-inner"><input class="tdb-head-search-form-input" type="text" value="" name="s" autocomplete="off"><button class="wpb_button wpb_btn-inverse btn tdb-head-search-form-btn" type="submit"><span>SEARCH</span></button></div>
</form>

GET https://www.fosslinux.com/

<form method="get" class="tdb-search-form" action="https://www.fosslinux.com/">
  <div class="tdb-search-form-inner"><input class="tdb-head-search-form-input" type="text" value="" name="s" autocomplete="off"><button class="wpb_button wpb_btn-inverse btn tdb-head-search-form-btn" type="submit"><span>Search</span></button></div>
</form>

POST #

<form action="#" method="post">
  <div class="td-login-inputs"><input class="td-login-input" autocomplete="username" type="text" name="login_email" id="login_email" value="" required=""><label for="login_email">your username</label></div>
  <div class="td-login-inputs"><input class="td-login-input" autocomplete="current-password" type="password" name="login_pass" id="login_pass" value="" required=""><label for="login_pass">your password</label></div><input type="button"
    name="login_button" id="login_button" class="wpb_button btn td-login-button" value="Login">
</form>

POST https://www.fosslinux.com/wp-comments-post.php

<form action="https://www.fosslinux.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate=""><input type="hidden" autocomplete="off" autocorrect="off" name="tKa-EG-JX-AS-C-V-I"
    value="HFbwL0juQdPDpMu4E9ujWdY_aExrix6eNEt5mTrWzHiOmFUx25skG-n86rQIUzTRpaOoojZjGjrv80BPY2hVAY6cUILNJnBOvRxXDL0ziYx4QIkWIDTxYCzC5BxiZp5A0C6JcMmTX_42PzuF6rc40w">
  <div class="clearfix"></div>
  <div class="comment-form-input-wrap td-form-comment">
    <textarea placeholder="Comment:" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>
    <label for="comment" class="is-visually-hidden">Comment:</label>
    <div class="td-warning-comment">Please enter your comment!</div>
  </div>
  <div class="comment-form-input-wrap td-form-author">
    <input class="" id="author" name="author" placeholder="Name:*" type="text" value="" size="30" aria-required="true">
    <label for="author" class="is-visually-hidden">Name:*</label>
    <div class="td-warning-author">Please enter your name here</div>
  </div>
  <div class="comment-form-input-wrap td-form-email">
    <input class="" id="email" name="email" placeholder="Email:*" type="text" value="" size="30" aria-required="true">
    <label for="email" class="is-visually-hidden">Email:*</label>
    <div class="td-warning-email-error">You have entered an incorrect email address!</div>
    <div class="td-warning-email">Please enter your email address here</div>
  </div>
  <p class="comment-form-cookies-consent">
    <input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes">
    <label for="wp-comment-cookies-consent">Save my name, email, and website in this browser for the next time I comment.</label>
  </p>
  <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Post Comment"> <input type="hidden" name="comment_post_ID" value="3534" id="comment_post_ID">
    <input type="hidden" name="comment_parent" id="comment_parent" value="0">
  </p><input name="yt-I-z-FoI-E-eC-t" type="hidden" value="160012005.010.0truetruetruegecko96.0.4664.93537.36">
</form>

Text Content

 * News
 * Terminal Tuts
 * APPS
 * DISTRO
   * Ubuntu
   * CentOS
   * Arch Linux
   * Fedora
   * Solus
 * Learn Linux
 * Live USB


Search

FOSS LinuxEnhance your Linux experience

FOSS LinuxFOSS Linux

FOSS LinuxEnhance your Linux experience
SEARCH

 * News
 * Terminal Tuts
 * APPS
 * DISTRO
   * Ubuntu
   * CentOS
   * Arch Linux
   * Fedora
   * Solus
 * Learn Linux
 * Live USB

FOSS LinuxFOSS Linux
Search

 * News
 * Terminal Tuts
 * APPS
 * DISTRO
   * Ubuntu
   * CentOS
   * Arch Linux
   * Fedora
   * Solus
 * Learn Linux
 * Live USB

Sign in
Welcome! Log into your account

your username
your password
Forgot your password? Get help
Privacy Policy
Password recovery
Recover your password

your email
A password will be e-mailed to you.
HomeTerminal Tuts


HOW TO COMPLETELY UNINSTALL APPLICATIONS BY COMMAND LINE IN UBUNTU




Uninstall Ubuntu Software and clean-up obsolete dependencies

By Kiran Kumar

March 24, 2018

Updated: March 3, 2019
Share

Facebook

Twitter

WhatsApp

Pinterest

Linkedin

ReddIt

Email

Print



Uninstalling the software from the command line via Terminal is one of the most
important tasks while dealing with troubleshooting a remotely connected Ubuntu
PC. In today’s Terminal Tuts session, let’s take a deep dive into it.


UNINSTALLING SOFTWARE FROM TERMINAL IN UBUNTU

The following guide is tested on Ubuntu 17.10 but should work on older Ubuntu
versions as well as Linux Mint, and elementary OS.



Step 1) To uninstall a software package, you need to know the exact name of it.
We shall use the tdpkg list command for it. Launch ‘Terminal’ and enter the
following command:

Powered By

00:00/07:38
10 Sec

6.3M

187
VI Editor - Linux Tutorial #14



Next
Stay





dpkg --list

You should see a long list of applications. Note down the name of the program
which you want to uninstall. For example, I want to remove VLC Media Player,
which is listed as just ‘vlc’.

dpkg –list command listing all apps in Ubuntu 17.10 Terminal

Step 2) To uninstall a program, we shall use remove command along with apt-get,
which is typically used to install applications. Of course, sudo command to
carry out superuser tasks. There are two important things to consider on what’s
your uninstallation plan.

Keep Personalized Settings:

If you are removing a program only to reinstall later, then you may want to keep
the configuration files, which will remember your settings applied in that app.
In such a case, use the remove command as follows:



General format:

sudo apt-get remove package_name

In my case, to remove vlc:

sudo apt-get remove vlc

Complete Uninstallation:

On the other hand, use –purge command to completely uninstall the app if you
plan not to reinstall the app.

sudo apt-get --purge remove package_name



sudo apt-get --purge remove vlc


SOME HOUSEKEEPING

Now that you have uninstalled the software, you may want to do some extra
cleanup to remove the dependencies of the software you uninstalled now or may be
in the past. Dependencies are the apps and libraries that are used by the
software you no longer have in your PC. Note that it is entirely safe to do so
because no application is using them.

sudo apt-get autoremove

As you see autoremove command is generic cleaning command for any obsolete
packages that are left over in your PC.


Share

Facebook
Twitter
WhatsApp
Pinterest
Linkedin
ReddIt
Email
Print



RELATED ARTICLES



9 COMMENTS

 1. Rick April 9, 2018 At 9:35 AM
    
    I’m new to command line and terminal. Being a “neat freak”, I really
    appreciate this info on keeping my system clean…thank you!
    
    Reply
 2. Samuel Fontes Lima September 25, 2018 At 6:47 PM
    
    Thank you
    
    Reply
 3. Arek July 16, 2019 At 11:10 AM
    
    Thanks. A very lucid post :).
    
    I have been struggling with removing Postman (an API tool).
    
    Postman is a native app that has been installed to /opt and I can see its
    folders and files there..
    however when I try to uninstall it using Ubuntu Software center, or Synaptic
    or apt or just list it using dpkg – all of the above do not show any postman
    files.
    Any idea what to do??
    
    Reply
 4. Karl August 10, 2019 At 4:15 AM
    
    Yep worked well. Thanks
    
    Reply
 5. C.k Suwarnaraj December 17, 2019 At 10:14 PM
    
    Thank you Brother
    
    Reply
 6. Alan July 3, 2020 At 9:15 AM
    
    Removed the Geary email program, thank you.
    
    Reply
 7. Jeavel July 6, 2020 At 11:53 AM
    
    Thanks a lot, but how do you uninstall applications from wine?
    
    this is my email: {redacted for privacy.}
    
    Please email me. Thanks a lot. Enjoy your day.
    
    Reply
 8. Muthu Kumaran September 14, 2020 At 11:50 AM
    
    Hello, need some help with total uninstallation of wine. I am new to Ubuntu
    18.04 LTS Bionic Beaver. Can you please help me with the relevant terminal
    commands to completely remove wine? Thank you.
    
    Reply
 9. Daniel Legras December 23, 2020 At 3:00 AM
    
    Hello, your website is very useful and your explanations are easy to
    understand. Thank You.
    
    Reply




LEAVE A REPLY CANCEL REPLY

Comment:
Please enter your comment!
Name:*
Please enter your name here
Email:*
You have entered an incorrect email address!
Please enter your email address here

Save my name, email, and website in this browser for the next time I comment.





22,858FansLike

444FollowersFollow

16SubscribersSubscribe


LATEST ARTICLES


HOW TO INSTALL SKETCHUP ON UBUNTU




HOW TO INSTALL OPEN BROADCASTER STUDIO ON LINUX




HOW TO CONVERT PDF TO IMAGES ON LINUX




TOP 5 KEY FEATURES IN LINUX MINT 20.3 CINNAMON





SUGGESTED


HOW TO INSTALL SKETCHUP ON UBUNTU

Sketchup 3D is one of the most popular 3D design and modeling software. It is an
intuitive 3D modeling application that is suitable for creating designs and
presentations in the fields such as construction, architecture, interior design,
video game design, industrial design, and many more.


FEATURED


TOP OPENSOURCE VIRTUALIZATION SOFTWARE FOR LINUX




10 REASONS TO USE GNOME AS YOUR DESKTOP ENVIRONMENT






MORE ARTICLES LIKE THIS


HOW TO MERGE PDF FILES ON LINUX




TIPS AND TRICKS OF USING WGET LINUX COMMAND




ACCESSING THE INTERNET FROM THE TERMINAL WITH THE CURL COMMAND




UBUNTU PACKAGE MANAGEMENT WITH APT



 * Contact us
 * About us
 * Privacy Policy
 * Disclaimer

© 2016-21 FOSSLINUX.COM - A VIBRANT LEAF MEDIA VENTURE. ALL RIGHTS RESERVED.
LINUX® IS THE REGISTERED TRADEMARK OF LINUS TORVALDS IN THE U.S. AND OTHER
COUNTRIES.


x