OSTechNix published a tutorial about recreating Debian binary packages that are already installed on a system.
Recreate Debian Binary Packages That Are Already Installed On A System
dpkg-repack is a commandline Debian package archiving tool to recreate Debian binary packages that are already installed on your system.
Recreate Debian Binary Packages That Are Already Installed On A System