13.7.5 Autoconf
autoconf
is a tool for producing shell scripts that automatically
configure software source code packages to adapt to many kinds of UNIX-like
systems using the entire GNU build system.
autoconf
produces the configuration script configure
.
configure
automatically creates a customized Makefile
using the Makefile.in
template.
13.7.5.1 Compile and install a program
Debian does not touch files in /usr/local/
(see Supporting diversity, Section 2.5). So
if you compile a program from source, install it into /usr/local/
so it will not interfere with Debian.
$ cd src
$ ./configure --prefix=/usr/local
$ make
$ make install # this puts the files in the system
13.7.5.2 Uninstall program
If you still have the source and if it uses
autoconf
/automake
and if you can remember how you
configured it:
$ ./configure all-of-the-options-you-gave-it
# make uninstall
Alternatively, if you are absolutely sure that the install process puts files
only under /usr/local/
and there is nothing important there, you
can erase all its contents by:
# find /usr/local -type f -print0 | xargs -0 rm -f
If you are not sure where files are installed, you should consider using
checkinstall
, which provides a clean path for the uninstall.