How do i Fully Uninstall glashfish from my Droplet?

January 16, 2017 412 views
DigitalOcean Linux Commands Ubuntu Ubuntu 16.04

I have install glassfish in my ubuntu droplet, now when i start the glashfish server using ssh command its closes the session when i close the ssh. so i would like to uninstall and install again with the list of step i have found in other sites; or if anyone can help me to overcome this challenge.

1 Answer

@tajmasindi

The easiest method would be to use apt, by running:

sudo apt-get remove glassfish-* \
&& sudo apt-get purge glassfish-*

It'll ask you to confirm the removal each time. You can also auto-answer yes by running:

sudo apt-get -y remove glassfish-* \
&& sudo apt-get -y purge glassfish-*

What the above commands do is:

1). Removes the installation
2). Removes the configuration left behind.

Have another answer? Share your knowledge.