I compiled Nginx now I want to remove or uninstall it. How can I do that?

I usually don't install software by compiling it from source.

link|improve this question

20% accept rate
feedback

1 Answer

By compile way of installing, do you mean "configure", "make" and "make install"?

If yes, you can go back to the same directory (that contains the source code) where you ran these make commands... You can then run "make uninstall" to uninstall the package..

You can see more detailed instructions to install and uninstall here:

http://articles.slicehost.com/2007/12/3/ubuntu-gutsy-installing-nginx-from-source

Note: Most package provide uninstall target, so that "make uninstall" works properly.. However, this may not always be true and uninstalling such programs might be a pain. For Nginx, it looks like uninstall target is provided and "make uninstall" works fine.

link|improve this answer
tried "make uninstall" I got "make: *** No rule to make target `uninstall'. Stop." I followed the link you gave, shall I do: rm -f -R /usr/local/nginx rm -f /usr/local/sbin/nginx is it ok? – Jusfeel May 11 '11 at 7:25
@Jusfeel: you need to run make uninstall from the directory in which you compiled nginx. – Lekensteyn May 11 '11 at 7:37
and next time use checkinstall to make a rpm and install it, rather than make install ;) – Journeyman Geek May 11 '11 at 7:46
I did make uninstall from the folder in which I compiled nginx. But seems there is no rule to make target "uninstall" - the message I got. What can I do now? – Jusfeel May 11 '11 at 7:59
Too bad that uninstall make target is not available for nginx. As @Lekensteyn suggested, you should always use checkinstall, instead of make install. For now, I guess the only option you have is to run "rm -f -R /usr/local/nginx rm -f /usr/local/sbin/nginx" to remove the files. I'm not sure if these are the only files that were created or whether there were more – Vinay May 11 '11 at 11:23
show 3 more comments
feedback

Your Answer

 
or
required, but never shown

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