Trucrux Inc

Debian package for binary files

Install required package #

$ sudo apt-get install dpkg-dev

Then follow the below steps for creating helloworld.deb file:

Create the directory helloworld and DEBIAN inside helloworld #

$ mkdir helloworld && mkdir helloworld/DEBIAN

Copy files into the package #

Copy the files into the package with the full paths on the destination file system. e.g. if you want to put a
file in /usr/local/bin/ you put it in helloworld/usr/local/bin/

$ mkdir -p helloworld/usr/local/bin

$ cp name_of_file_tobecopied helloworld/usr/local/bin

Create a control file #

$ gedit control

copy the below line in control and save it

Package: helloworld
Version: 0.2
Section: base
Maintainer: Trunexa
Architecture: all
Description: hello world

Create a deb package using the below command #

$ dpkg-deb --build helloworld

which creates helloworld.deb file

Install the deb package using the below command #

$ dpkg -i helloworld.deb

To check deb file is installed or not, go to usr/local/bin of the device and search for the name of the file for which debian package is made