from Hacker News

Ask HN: RPMs or DEBs? Which is easier for devs to package their apps?

by profwalkstr on 12/22/23, 6:31 AM with 2 comments

In your experience packaging applications, is it easier to create RPMs or DEBs? What makes one easier or the other more complicated? What about the documentation and associated tools for creating the packages?

Is there one easier and simpler than the other or are both complicated beasts?

  • by kmarc on 12/22/23, 7:06 AM

    RPM has a cool feature, autoprov and autoreq: lookingat your to-be-packaged files, it will check the shared libraries in it and create the list of the requirements and provided capabilities. (note that with RPMs, packages can depend not only other packages but on provided libraries too

    That said, unless you have a very specific reason to, do not attempt to package stuff yourself with spec files. Just use a tool like fpm to do the heavy lifting:

    https://fpm.readthedocs.io/en/latest/getting-started.html

  • by brudgers on 12/22/23, 6:43 PM

    To me, "which is better for users?" might be a better north star.

    YMMV. Good luck.