When packing jars with RPMs, is it recommended to indicate "noarch"?

As far as I understand, banks can work on any platform, provided that you have a JVM, so if any packages that are simple jars should have "noarch", so can rpm be used on other machines?

+4
source share
1 answer

If your package contains parts of the JNI (Java Native Interface), you should always use BuildArch: noarch . Thus, you will get a single RPM that can be installed in any architecture.

This says nothing about working on any architecture, of course. There are simple ways to mess up the multiarch promises of Java and the JVM (usually hard coding in assumptions related to architecture into code). But in terms of packaging, noarch is the standard in the Java world.

+3
source

Source: https://habr.com/ru/post/1435067/


All Articles