0

I can see the licence information about rpm file by executing below:

rpm -qip {rpmfilename}.rpm

but there is no information about copyright holder.

Is there any easy way to know who has the copyright of specific rpm package?

Should I download the corresponding source file and read them?

0

I'm afraid there is no easy way as the RPM file specifications (see e.g. here) do not include a tag to advertise the copyright holder, only the license type.

It would seem that the only somewhat "scriptable" way relies on the contained files labelled as documentation, which you can list via

rpm -qpd {rpmfilename}.rpm

in the hope that the RPM packager included a "copyright" file there (see examples here), but this is not guaranteed. Even then, you would still need to extract that part of the RPM to actually access the content of that file (see this post on how that can be done).

In the end, you may well have to look at the source code; if you are lucky, it is hosted on GitHub, and you can find information on the copyright holder on the project page.

  • I didn't know that I can extract rpm files. I'll try it, thank you for your answer. – Daigo Nov 8 at 0:29
  • You're welcome. If you found the answer helpful (after all), please consider accepting it so that others can find it more easily, too. – AdminBee Nov 8 at 7:16
  • note that modern packages have a tag for license files and you can print them using rpm -qpL {rpmfilename}.rpm – msuchy Nov 8 at 14:03
  • Thanks, I tried rpm -qpL but it showed nothing about most of packages. – Daigo Nov 11 at 1:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.