In this tutorial we will learn how to build a .deb package from source under Ubuntu. The method we will use will be from the terminal.  You can also use some software with GUI to build Deb packages like Debreate, for example.

Let's first install these packages needed for the compilation of source:

sudo apt-get install checkinstall autotools-dev build-essential

Now download your source and extract it to any folder of your choice, then open the terminal and cd to this folder:

cd source-directory

Run now these commands to compile and create the .deb package:

sudo checkinstall

You will be prompted to enter some details for your .deb package. At the end, the Debian package will be created in your source directory.

That's it!

Post a Comment