Modify header digest of existing RPM packages #2131
Unanswered
Yash-Khatri
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Not with any command-line tool I am aware of. You could do it using librpm or any other library for reading and writing RPM packages. |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can't change it to sha256, the element is defined to be a sha1 checksum. Newer rpms also add a "Header SHA256 digest", so you'll have both sha1 and sha256. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is there any way to explicitly modify the existing header digest algo of the existing RPM packages?
Upon running the command
rpm --checksig --verbose <package>.rpm
it shows below output for my package.please note that for header digest SHA1 is used.
My requirement is to change this header digest to sha256 or similar.
p.s. I am building my packages on rhel6 and rhel7 systems.
Any help or suggestions are welcomed.
Beta Was this translation helpful? Give feedback.
All reactions