Ubuntu – Compiling source into a DEB package

checkinstalldebinstall-from-sourcepackaging

I have always had a problem installing and removing compiled software, so I have decided I would like to build software from source into a .deb package for easier installation/removal.

I would like to know of an easy and short way to build source into a .deb package, as an end user.

I have tried:

Best Answer

checkinstall does what you want to achieve: it will monitor which files get installed and put them into a .deb package, which can then be installed and removed

Install it with

apt-get install checkinstall

then you do the normal install from source procedure, replacing 'sudo make install' with 'sudo checkinstall':

  ./configure
  make
  sudo checkinstall

Reference: https://help.ubuntu.com/community/CheckInstall