checkinstall

Track the local installation of a software package, and produce a binary package which can be used with a system's native package manager. More information: <http://checkinstall.izto.org>.

Debian Debian
RUN apt-get update && \ apt-get install -y checkinstall
Ubuntu
RUN apt-get update && \ apt-get install -y checkinstall
Raspbian
RUN apt-get update && \ apt-get install -y checkinstall
click the source code to copy install checkinstall on any operating system with command-not-found.com