For complete control over what is installed on your
machine, the only option is to compile applications by
hand. This may also be necessary if the application
you want to install is not yet being distributed in
your distribution. There are some packages which are
illegal to distribute in binary form, but legal in
source code form.
Source packages tend to be released as
.tar.gz files. These are
compressed tar archives. They can be expanded with
the command tar xzvf file.tar.gz.
Most such packages have a README or INSTALL file at
the top level which describes how to compile and
install the package.
It is not possible to cover every possible method for
compiling a program; we are covering the most
straightforward, increasing common method, called
autoconf. The package likely uses this method if
there is a configure script at
the top level. To compile the package, first run this
script. Then run make. Then as
root, run make install. In the
absence of errors, this will result in the application
being installed as desired in the package's default
location (generally under
/usr/local). This and other
compile settings can generally be adjusted by passing
options to the configure script (the
--help option will list all
available options).