Mind you, rpm doesn't work on Debian. Nor will a .deb package be understood by rpm. So, in short: don't use the package manager but use common tools instead. If you can't do w/o the package manager, use a script to determine which version of the command should be used. Something like this:
Code:
if <system=debian-based>
then <dpkg command>
else <rpm command>
Fill in the rest yourself