1

I recently installed php and apache from source distribution on my ubuntu(amazon ec2) instance. Now, I want to remove them. But didn't get a way to do that. Can anyone please help me show should be uninstall them.

Or If I need to delete files/directories manually, is there any way to find which were installed for a package? Thanks in advance.

Rana
  • 161
  • 1
  • 2
  • 7

3 Answers3

2

If you still have the original compiled source directory somewhere you may be able to use sudo make uninstall in each directory which (in theory) should remove all of the files installed.

Note I say in theory because it's not guaranteed the Makefile has proper provision for "uninstalling" in this way. Generally the recommendation is to use packages shipped with the distribution unless you're fully aware of what you're doing and have a strategy for handling upgrades & uninstalling applications installed this way.

rmyates
  • 411
  • 2
  • 3
  • Hi, Thanks. I searched and found such tips to use 'make uninstall', but seems like its not available on either of the source distributions. Is there any alternative commands as well? – Rana Sep 26 '12 at 04:42
-1

You can use this command to remove them.

apt-get remove apache2 php5

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
sandeep.s85
  • 2,119
  • 1
  • 18
  • 27
  • that is the command to remove binary distribution, not source distribution. I need a solution for package installed from source code with 'make' command. – Rana Sep 25 '12 at 11:57
-1

Use this commant to remove apache server and php (Worked for me):

sudo yum remove httpd* php*

See this question too (Answer from "Rijas Madurakuzhi"): https://stackoverflow.com/questions/29206795/how-to-install-php5-6-in-amazon-linux

BenS.
  • 11