2

What is the difference between using rpmsign --addsign and rpm --addsign, when trying to sign a rpm package? Which one should be used?

I tested the two commands on the same rpm and it seems the behavior is the same:

[~]# rpmsign --addsign test.rpm
Enter pass phrase:
Pass phrase is good.
test.rpm:
[~]# rpm -q --qf '%{SIGPGP:pgpsig} %{SIGGPG:pgpsig}\n' -p test.rpm
RSA/SHA1, Wed 09 Dec 2020 10:33:31 PM CET, Key ID c5f1c21b5cea63a6 (none)

[~]# rpmsign --delsign test.rpm

[~]# rpm --addsign test.rpm
Enter pass phrase:
Pass phrase is good.
test.rpm:
[~]# rpm -q --qf '%{SIGPGP:pgpsig} %{SIGGPG:pgpsig}\n' -p test.rpm
RSA/SHA1, Wed 09 Dec 2020 10:35:01 PM CET, Key ID c5f1c21b5cea63a6 (none)

1 Answer 1

4
rpm --addsign
rpm: /usr/bin/rpmsign: No such file or directory

rpm --addsign uses rpmsign, i.e. they are the same command.

Aliases are defined in /usr/lib/rpm/rpmpopt-$VERSION.

3
  • thanks. Do you have any idea where it's made explicit in the documentation (or the code)?
    – baudsp
    Commented Dec 10, 2020 at 8:41
  • check /usr/lib/rpm/rpmpopt-$VERSION - it contains all the aliases. Commented Dec 10, 2020 at 8:55
  • thank you. That helped me a lot.
    – baudsp
    Commented Dec 10, 2020 at 9:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .