dpkg-repack

puts an unpacked .deb file back together

Debian Debian
RUN apt-get update && \ apt-get install -y dpkg-repack
Ubuntu
RUN apt-get update && \ apt-get install -y dpkg-repack
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y dpkg-repack
Raspbian
RUN apt-get update && \ apt-get install -y dpkg-repack
click the source code to copy install dpkg-repack on any operating system with command-not-found.com