You can list the contents of a deb file by running
dpkg-deb --contents package.deb
dpkg-deb
can show a whole lot of information about a deb package. You can see the other options by running dpkg-deb --help
.
Unfortunately, you can't determine what files a Makefile will install. However, you can install to a temporary directory by setting the DESTDIR
variable. Note that this works well mainly on Makefiles generated by autotools
ie. the ./configure
script. For example:
cd sourcecode-1.2
./configure --prefix=/usr #Just the usual compiling stuff
make
mkdir /tmp/installedfiles #Create a temporary directory for the files
make DESTDIR=/tmp/installedfiles install
That last make
line will install the files in /tmp/installedfiles
. You can then see the files that would be created, although those files and directories will all be relative to the prefix specified in the configure script. In other words, /tmp/installedfiles/bin/mainprogram
would be installed as /usr/bin/mainprogram
.
I hope I answered your question :)