Uninstalling Subversion
I ran in to a problem recently where I had installed Subversion from source and then wanted to remove it again. As I hadn’t specified a target when I ran configure the files were installed in /usr/local and the developers helpfully do not support an uninstall target to make (and defend this position which to me made them look close-minded and unable to understand that they are writing software for other people to use and not themselves, but never mind).
With the help of someone on a mailing list finally being helpful and not arrogant towards someone else in my predicament a fairly foolproof way was devised:
cd /path/to/source/tree
make install DESTDIR=/tmp/qqq
cd /tmp/qqq
find . -type f -print0 | xargs -i -0 echo "{}" | cut -c 2- | less
This list can then be reviewed, found to be clean, and the software removed with:
find . -type f -print0 | xargs -i -0 echo "{}" | cut -c 2- | xargs -i rm "{}"
TaDa!
I realise this will not get the system back how it was, but it might mean I can get on with trying to build a Debian backport