Translating rpm commands to dpkg

dpkgrpm

I've been using RPM for a long time – built my own packages and installed Linux with nothing but the RPMs to do it with.

However, now that I'm using Ubuntu and Linux Mint regularly, I want to learn more about dpkg but don't know where to start.

Particularly, I find myself missing commands like:

  • rpm –queryformat="…" (query database for data and print in user-defined format)
  • rpm –whatrequires (find out what requires a package)
  • rpm -qV (verify all files on the filesystem)

And there are more. Where can I find the best translator?

UPDATE: I've located two that I didn't know about when I wrote this question. One is APT and RPM Packager Lookup Tables from J. P. Vossen. The other is from Ubuntu and is called Switching To Ubuntu From Linux Red Hat Enterprise Linux And Fedora. Both pages are quite good.

Best Answer

I don't think there is a good 'translator'. You could write one up, though! Note that in the debian world (where dpkg comes from), you'll need not just dpkg but also possibly other tools like dpkg-* apt-cache to show you some of those things.

rpm --queryformat is approximately the same as dpkg-query.

rpm --whatrequires is approximately the same as apt-cache rdepends.

rpm -qV is approximately the same as the debsums

That should get you started :)