How To Create A .deb Package From Source & Install It Automatically
5 March, 2021 by
How To Create A .deb Package From Source & Install It Automatically
Administrator
| No comments yet

I’ve found this method to work in most but NOT all cases, as sometimes additional depencies are required in order to build the package.

STEP 1:

The required packages are:

build-essential
automake
autoconf
libtool
pkg-config
libcurl4-openssl-dev
intltool
libxml2-dev
libgtk2.0-dev
libnotify-dev
libglib2.0-dev
libevent-dev
checkinstall

Or simply run the following command:

$ sudo apt-get install build-essential automake autoconf libtool pkg-config libcurl4-openssl-dev intltool libxml2-dev libgtk2.0-dev libnotify-dev libglib2.0-dev libevent-dev checkinstall
STEP 2:

Now to make the package:

The source tarball “transmission-1.76.tar.bz2” is used in this example (sub the .bz2 tarball of the source code for the app you are working on for this one)

$ tar xvjf transmission-1.76.tar.bz2 (alt:or you can extract the data from the tarball using the archive manager the right-click menu)

$ cd transmission-1.76 (alt: or you can highlight the newly created folder and from the right click menu choose “open terminal here”)

$ ./configure && make && sudo checkinstall

This will create a .deb package for you and automatically install it on your system, which can then be easily removable via Synaptic (look in the local section), or via the Software Manager or by:

$ sudo dpkg -r

Then you can remove the source .tar.gz from your computer.

STEP 3:

You may have to:

sudo chown .deb in the source directory to make it yours and the move that to another location so that you have it on hand if you need it, then you can delete the source folder.

Note 1: Step #3 may not be required if you open the untarred folder with “open folder as root” from the right click menu (for Linux Mint users only).

Note 2: Though your newly installed app will appear in the Linux Mint Software Manager, reviews cannot be submitted for it.

Sign in to leave a comment