How to view system package contents?

Hello
Prompt, who knows - as you can see the system contents of the package, namely the pre\post scripts, dependencies, and so on. There is no package in the repositories (going to a former colleague). You need to rebuild.
How can I see the installation files in Google too, yet did not find. If anyone knows plz tell me
Thank you
July 9th 19 at 10:47
1 answer
July 9th 19 at 10:49
If the package is installed - ls /var/lib/dpkg/info/packagename.*

If you have on the disk .deb file itself, then:
ar-x file.deb
tar-xvf control.tar.gz
tar-xvf data.tar.gz
the content I saw. I need post-scripts, dependencies and other buns - margarette_Wiso commented on July 9th 19 at 10:52
: control.tar.gz - eldon_Batz84 commented on July 9th 19 at 10:55
thank you - margarette_Wiso commented on July 9th 19 at 10:58

Find more questions by tags Debian