Trucrux Inc

Debian package for binary files

Install required package #

$ sudo apt-get install dpkg-dev

Then follow below steps for creating helloworld.deb file:

Create the directory helloworld and DEBIAN inside helloworld #

$ mkdir helloworld && mkdir helloworld/DEBIAN

Copy files into package #

Copy the files into 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 pacakge using below command #

$ dpkg-deb --build helloworld

which creates helloworld.deb file

Install deb package using below command #

$ dpkg -i helloworld.deb

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