4 ms·
The control data (eg unzip the archive and view or use "dpkg-deb -I /path/to/package.deb") gives you the version number which should match. This should also mat
by pbhjpbhj 16y ago
The control data (eg unzip the archive and view or use "dpkg-deb -I /path/to/package.deb") gives you the version number which should match. This should also match with changelog details from changelog.gz under the data part of the deb (but not all packages have this). Both of these are easily forged.
To me, a novice, it appears that the best bet is to use signed/checksummed packages from a reputable source; I don't think you can tell beyond this.
To be able to recompile and compare the binaries you'd need to know which compile-time options were used.