« PHP syslog, not quite right Installing transmission-daemon from source in debian Squeeze. »

Uninstalling a source installed PHP environment


Since the PHP devs doesn't see it fit to include an option to uninstall (at least not in v5.3.6) in their source distribution I thought I'd share a quick tip with you.

In order to uninstall what we installed with "make install" we first need to find out what was installed.
"make -n install" will dump the install commands used during installation, at least as long as you haven't rebuilt the config or other wise changed the install files since installation.

You will have to extract out the resulting files on your own since the output of "make -n install" includes commands to create directories.

It should result in a list similar to this one:


Just remove those files and directories and you are done.