Here I use dh_make. But for simple packages it is best to use equivs !

Description

You will have to create and install an empty debian package with the minimal number of instructions.

Details

step 1 : preparation

step 2 : create the source package

step 3 : build the deb file

step 4 : install the package

step 5 : test

Solution

step 1 : preparation

We want to create a directory package-minimal-instructions where all the files will go.

We have to create an package-minimal-instructions-1 with a version number where the source file is.

$ mkdir -p package-minimal/package-minimal-1.0

$ cd package-minimal/package-minimal-1.0

# aptitude show package-minimal

E: Unable to locate package package-minimal

step 2 : create the source package

$package-minimal/package-minimal-1.0# dh_make -s -n

step 3 : build the deb file

$package-minimal/package-minimal-1.0# dpkg-buildpackage -rfakeroot

step 4 : install the package

$package-minimal/package-minimal-1.0# cd ..

$package-minimal# dpkg -i p*.deb

step 5 : test

# aptitude show package-minimal

Package: package-minimal                 

New: yes

State: installed

Automatically installed: no

Version: 1.0

# cd /

$/# find -name "package-minimal*"

./usr/share/doc/package-minimal

./var/lib/dpkg/info/package-minimal.md5sums

./var/lib/dpkg/info/package-minimal.list

# aptitude remove package-minimal

# aptitude show package-minimal

E: Unable to locate package package-minimal

$package-minimal# rm p*

rm: cannot remove `package-minimal-1.0': Is a directory

package-minimal# ls

package-minimal-1.0