Building a Debian Package from installed files
Recently I had a package disappear on me from the mainline repos but one of my apps had a hard dependency on that version. I managed to find a machine that still had that package installed so here's what I did.
Get the file list:
dpkg -L firefox-esr|sed 1d|grep -v "package diverts" > esrfiles.txt