Checkinstall is a nice tool to create simple .deb-packages that you can use in your local network (e.g. if you have to install the same piece of software on multiple computers running Debian). It lets you compile and install software from the sources like before, but with the difference that you end up with a simple Debian package which also means that you can easily uninstall the software you just compiled by running:
dpkg -r pkgname
I will demonstrate the use of checkinstall by compiling and installing the anti-virus software ClamAV on a Debian system.
This howto is meant as a practical guide; it does not cover the theoretical backgrounds. They are treated in a lot of other documents in the web.
This document comes without warranty of any kind!
1 Install Checkinstall
apt-get install checkinstall
2 Install nodejs latest
apt-get install python g++ mkdir ~/nodejs && cd $_ wget -N http://nodejs.org/dist/node-latest.tar.gz tar xzvf node-latest.tar.gz && cd `ls -rd node-v*` ./configure # make install checkinstall -D make install
This even works on the computer you compiled nodejs on! This is a nice way to install software from the sources and remove it if you are unsatisfied with the result.
NOTE: man dpkg for details pkg manager in ubuntu.
# install *.deb file dpkg -i PACKAGENAME # list all package installed dpkg -l # list files of a Debian package without install dpkg --contents PACKAGENAME