I would think the easiest way to do that is to get checkinstall. You then extract your source files as normal then run ./configure then run make. After that you run - checkinstall make install - without the (-) this will create a package and install it. that way no matter where you set the prefix for the source to install to you will be able to remove all files from your package manager. The programme works quite well for me. The only thing is I am no good at scripting and you usually have to add symbolic links manually when you configure the source to a non standard location. Good luck
|