Uninstall Apache???

Martin P. Hansen mph at lima.dyndns.dk
Sun Dec 25 14:49:21 PST 2005


On Sun, 25 Dec 2005, legalois wrote:
> Martin P. Hansen wrote:
> >On Sun, 25 Dec 2005, Jose Borquez wrote:
> >
> >>I would like to know how you can uninstall Apache is it was installed 
> >>from source?  I did a search on Google and read that you could just stop 
> >>the service and then delete the apache source tree.  Is this true?
> >
> >
> >It probably depends on your definition of uninstall. Usually the
> >service binaries are installed in /usr/local/bin or sometimes in
> >paths like /usr/local/apache. Same goes for configuration files see
> >also hier(7). So stopping the service and removing the source tree
> >wont remove these.
> >
> >Some makefiles comes with an uninstall target, so you might try
> >``make uninstall''. Otherwise you can do a rebuild and reinstall
> >from the sources again and look for recently changed files with
> >something like ``find / -newerct "10 minutes ago"''. This probably
> >have some shortcomings, but if you are careful it might do the job.
> >
> 
> ...or you could read pkg_delete(1) and pkg_deinstall(1) and follow 
> instructions.
> ("make uninstall" is not a valid target for any Makefile in the ports 
> tree that I am aware of.)

As I understand the question, ``source'' doesn't refer to a port,
but rather the original apache source distribution.

But ofcause if you are dealing with ports it is *much* easier to
use the package features ;-)

-- 
Martin P. Hansen


More information about the freebsd-questions mailing list