[https://packages.debian.org/checkinstall checkinstall] keeps track of all the files created or modified by your installation script, builds a standard binary package (.deb, .rpm, .tgz) and installs it in your system giving you the ability to uninstall it with your distribution's standard package management utilities.
+
+
===Example use===
+
You have an archive with software to build.
+
*Normal install
+
./configure
+
make
+
make install
+
make clean
+
+
*Build and use checkinstall to install and build the .deb file
+
./configure
+
make
+
checkinstall
+
+
*Build and use checkinstall to create the .deb file ''without'' installing it
+
./configure
+
make
+
checkinstall --install=no
+
+
Refer to the [https://manpages.debian.org/man/8/checkinstall man page] for more information