Use CheckInstall When Installing From Source

By | 2010/08/18

Need to compile and install something from source? You should use checkinstall!

What is checkinstall?

CheckInstall creates a nice neat .deb (or rpm) of your sources which you can then easily install (and more importantly – easily UNinstall!).


First, install checkinstall:

sudo apt-get install checkinstall

Then when compiling from source, first begin the process as usual:

./configure
make

Finally at the last step, instead of issuing sudo make install, use:

sudo checkinstall

Appropriate debs are then created and installed on your system.



If you need to remove that package for any reason, you can use Synaptic or try this from the command line:

sudo dpkg -r mypackage

Sweet!