Solved

How do I uninstall software I installed on my Ubuntu 14?

Posted on 2015-01-24
3
728 Views
Last Modified: 2015-01-28
Hi,

A while back I installed ISPCONFIG3 on my Ubuntu 14 x64 server but I never really used it. Since the composite program required several other dependant apps like spamassassin, dovecot etc. that are simply there and hog up system resources on my VPS I have decided on uninstalling them. I used strings like the following to install it:

sudo apt-get install libapache2-mod-python libapache2-mod-fcgid apache2-suexec php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-imap php5-cgi php-auth libruby postfix postfix-mysql postfix-doc

Open in new window


and

sudo apt-get install openssl getmail4 binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve 

Open in new window


Could someone kindly exlpain how I could uninstall the lot using single long commands as seen above?

thanks in advance
0
Comment
Question by:badwolfff
3 Comments
 
LVL 6

Expert Comment

by:Shiju Jacob
ID: 40568460
Try

php -q uninstall.php


Make sure you backup your /etc/apache2/apache2.conf.. because after you uninstall ispconfig your apache2 encounter a problem, it wont start..If any one who encounter this problem, follow this steps:
1. backup apache2.conf ( As I mention earlier)
2. Uninstall ispconfig
3. sudo a2dissite 000-apps.vhost
4. sudo a2dissite 000-ispconfig.conf

if you got this error:
ERROR: Site 000-apps.vhost does not exist!
ERROR: Site 000-ispconfig.conf does not exist!

you may remove them from /etc/apache2/site-enabled/
sudo rm /etc/apache2/site-enabled/000-apps.vhost
sudo rm /etc/apache2/site-enabled/000-ispconfig.conf

this is what I did

But I guess, It's better to disable 000-ispconfig.conf and 000-apps.vhost before you uninstall ispconfig 3
0
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
ID: 40568465
Do the same command except change "install" to "remove". Example:

sudo apt-get remove openssl getmail4 binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve 

Open in new window

0
 
LVL 61

Expert Comment

by:gheist
ID: 40568599
apt-get purge xxx
will also delete config files that otherwise are left behind.

I would start with simply stopping the service. I doubt 100kb big dovecot can do any harm compared to 100MB PHP
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

9 Experts available now in Live!

Get 1:1 Help Now