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)
/usr/lib/rpm/rpmpopt-$VERSION
- it contains all the aliases. – Artem S. Tashkinov Dec 10 '20 at 08:55