[zypp-devel] creating package installation zypp history entry: checksum field
Can anyone tell me on how to obtain the last field ("checksum") in order to write out a zypp history entry? http://en.opensuse.org/Libzypp/Package_History no more detailed description here. can not find an approriate rpm-header tag either. . So where does the checksum in the last column of /var/log/zypp/history come from, what kind of checksum is it, what does it checksum and how can I generate it for a program having to installing rpms manually? -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
* Elmar Stellnberger <estellnb@gmail.com> [May 17. 2010 12:38]:
Can anyone tell me on how to obtain the last field ("checksum") in order to write out a zypp history entry? http://en.opensuse.org/Libzypp/Package_History no more detailed description here. can not find an approriate rpm-header tag either. . So where does the checksum in the last column of /var/log/zypp/history come from, what kind of checksum is it, what does it checksum and how can I generate it for a program having to installing rpms manually?
It should be the packages md5 sum, needed to uniquely identify a package. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Mon, May 17, 2010 at 01:19:01PM +0200, Klaus Kaempf wrote:
* Elmar Stellnberger <estellnb@gmail.com> [May 17. 2010 12:38]:
Can anyone tell me on how to obtain the last field ("checksum") in order to write out a zypp history entry? http://en.opensuse.org/Libzypp/Package_History no more detailed description here. can not find an approriate rpm-header tag either. . So where does the checksum in the last column of /var/log/zypp/history come from, what kind of checksum is it, what does it checksum and how can I generate it for a program having to installing rpms manually?
It should be the packages md5 sum, needed to uniquely identify a package.
A md5 sum with 40 characters? Seems more like the sha1 sum of the rpm. It's probably just the checksum from the metadata, i.e. it may be sha256 in the future. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On 05/17/2010 01:53 PM, Michael Schroeder wrote:
On Mon, May 17, 2010 at 01:19:01PM +0200, Klaus Kaempf wrote:
* Elmar Stellnberger <estellnb@gmail.com> [May 17. 2010 12:38]:
Can anyone tell me on how to obtain the last field ("checksum") in order to write out a zypp history entry? http://en.opensuse.org/Libzypp/Package_History no more detailed description here. can not find an approriate rpm-header tag either. . So where does the checksum in the last column of /var/log/zypp/history come from, what kind of checksum is it, what does it checksum and how can I generate it for a program having to installing rpms manually?
It should be the packages md5 sum, needed to uniquely identify a package.
A md5 sum with 40 characters? Seems more like the sha1 sum of the rpm. It's probably just the checksum from the metadata, i.e. it may be sha256 in the future.
Yes, it's the sha1 checksum of the rpm file, and it comes from metadata, and it is used in the history log to identify the package. -- cheers, jano Ján Kupec YaST team ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz ---------------------------------------------------------(EOF)---
participants (4)
-
Elmar Stellnberger
-
Jano Kupec
-
Klaus Kaempf
-
Michael Schroeder