To compile a static version of apt (on a standard potato box): 1. Get official sources from potato/main/source/base 2. Unzip sources 3. Replace apt.../debian/control by apt,debian,control from this directory 4. In the apt base dir (as normal user): fakeroot debian/rules STATICLIBS=yes LFLAGS=-static binary Note: building might fail after the actual compile during dh_installdocs (or the like). Just repeating the "fakeroot debian/rules binary" should continue building the package without further problems. To compile a static version of dpkg (on a standard potato box): 1. Get official sources from potato/main/source/base 2. Unzip sources 3. Replace dpkg.../debian/control by dpkg,debian,control from this directory 4. Replace dpkg.../Makefile.conf.in by dpkg,Makefile.conf.in from this directory 5. In the dpkg base dir (as normal user): fakeroot debian/rules binary (Note: NLS is present but not functional in this version. NLS can't be statically linked because of symbol clashes with the C library. Also a --disable-nls for ./configure doesn't work because other scripts don't check for that making make fail.)