add version comparison commands to Debian

Rebased and applied to `lib/3.5` and `lib/3.6`.

Needs testing.

Several other Debian `package_method` bodies may also want this.  Any Debian fans in the audience?