Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
dpkg -r apache2 or dpkg -r php5 (You will need to adjust according to your version) –  ionFish Sep 25 '12 at 10:30

2 Answers 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.

share|improve this answer
    
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 4:42

You can use this command to remove them.

apt-get remove apache2 php5

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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