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)

baudsp
  • 143

1 Answers1

5
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.