Occasionally, we are dealing with software installation from source code by running configure, make, and make-install. When we do it that way, we can not reverse the process (uninstall) it. To overcome that issue, we can build the source code into DEB Package.
DEB, Debian packages are standard Unix archives that include two tar archives optionally compressed with gzip (zlib), Bzip2, lzma, or xz (lzma2): one archive holds the control information and another contains the program data. (Source: Wikipedia)
DEB builder dependencies
To start building deb package, we must install several dependencies:
apt-get install build-essential automake autoconf libtool pkg-config checkinstall
For this tutorial, I will show you how to build deb package of Dante Socks Server source code. The file can be obtained here:
SSH Command list to build DEB Package
The following are command list to build Dante DEB package from source code:
tar zxvf dante-1.3.2.tar.gz
The last command “checkinstall” will have some response which you need to input. Once completed it will produce DEB file:
Install DEB Package
To install this package we can use standard command:
dpkg -i dante_1.3.2-1_amd64.deb
All done now….
But, if somehow you want to uninstall it, you can do it easily using this command:
dpkg -r dante_1.3.2-1_amd64.deb