Creating a .deb The basic steps for building a .deb are: build all the sources install the package into a temporary directory (debian/tmp) create a debian/tmp/DEBIAN subdirectory and put metadata in it call dpkg-shlibdeps to generate scan for library dependencies call dpkg-gencontrol to generate a control file call "dpkg --build" to build the .deb