How do I uninstall Tomcat 7 from my Ubuntu server?

Posted on 2014-08-31
Last Modified: 2014-12-17
Hi all,

I installed Tomcat on my Ubuntu 14.04 server recently using the following procedure (I was following a tutorial I found on Digital Ocean):
sudo apt-get install tomcat7
sudo apt-get install tomcat7-docs tomcat7-admin tomcat7-examples
sudo apt-get install default-jdk
sudo apt-get install ant git

Open in new window

How do I uninstall it completely now? Of course I would like the rest of the server to remain intact and working.

Question by:badwolfff
    LVL 20

    Accepted Solution

    You can use the following to remove the above packages:

    sudo apt-get remove tomcat7 tomcat7-docs tomcat7-admin tomcat7-examples default-jdk ant git

    Open in new window

    LVL 2

    Expert Comment

    by:Puspharaj Selvaraj
    I would recommend you to stick with binary zip packages, rather than from the apt repository.

    You can easily manage them.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now