I realise that for removing the LAMP stack there are several threads already, but without wishing to duplicate the question, how can I simulate removal of LAMP on Ubuntu 16.04 as recommended by Akhil Varma here?

I'm unable to leave a comment there. Especially because many people have experienced problems when removing LAMP, I think a step-by-step guide to testing it out first would be helpful.

I'll be most grateful for any help, as I really need to free up memory.

  • your url is broken; goes to a non-existing location. editted if that is not the correct one please edit it ;) – Rinzwind Jul 1 '17 at 9:26
  • And I doubt there is a way to test a removal. You can see what it removes before answering "yes" to it. But the end results ... nope. – Rinzwind Jul 1 '17 at 9:29
  • url broken ? Sorry, Rinzwind, but the link's working for me, even when I'm logged out of the site. Here is the full address, though: askubuntu.com/questions/447086/… – Rene Thomas Jul 4 '17 at 7:27
  • Please read the 1st comment carefully. See the revision history if needed. – Rinzwind Jul 4 '17 at 8:22
  • Aha, yes, I did indeed misread "editted"[sic] as being the imperative "edit it"(!) – Rene Thomas Jul 4 '17 at 17:38

A good way to do this is using the aptitude package manager. It's an advanced package manager that even includes an in terminal graphic display. Install it with

apt-get install aptitude

Now you can simply use simulate function with

aptitude -s purge phpmyadmin php5 mysql-server

(This command is only to show you how it works! I don't know which packages you exactly want to purge so add them yourself)

However this only shows what will be purged, not the actual purging(like @Rinzwind stated.

| improve this answer | |
  • This is handy for me to know. I have aptitude installed already, but didn't know about the in terminal graphic manager function, nor how to simulate purges. – Rene Thomas Jul 4 '17 at 7:29
  • @ReneThomas then could you accept the answer? – ADDB Jul 4 '17 at 8:34
  • Yes. As explanation rather than justification (ignorance is said to be no excuse), I have only a shallow understanding of how stack exchange forums work, and it never occurred to me that answers can be accepted by a specific action rather than just by a positive comment. – Rene Thomas Jul 4 '17 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.