Rebuild deb package from installed files

July 14, 2009

To rebuild Debian package (.deb) from an installation

apt-get install dpkg-repack

dpkg-repack <package_name>

Eg:

dpkg-repack <apache>