Basic steps in building a package build all binaries, documentation, etc. construct a temporary directory and install everything in there install special Debian files use dpkg-shlibdeps to generate library dependencies use dpkg-gencontrol to generate a control file build the deb (dpkg --build) check the deb (lintian)