It will work only if when running the %post the rpm is considered "installed" and can be queried with rpm -q Another option is: At the end of the %install calculate yourself the checksum of all files (it should be simple with something like: find %{buildroot} -type
f -exec mdsum {} \; ) into a file, package this file, and in the %post copy this file somewhere else so it won't be deleted when rpm is uninstalled. Hope this helps, Eran. From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx]
On Behalf Of Dragos Diaconescu Hi, I know that the rpm stores the ckecksums, but for this I need to keep the rpm. I would need to have a separate file with all these check sums and if the rpm is deleted I can check this file. Also, I would like to create this file during the rpm installation. I am the one who builds the rpm and I can modify the SPEC file. I would need to add something similar to your command, but in the SPEC file, in the %post section. Is there With kind regards, On Wed, Mar 12, 2014 at 4:15 PM, Florian Festi <ffesti@xxxxxxxxxx> wrote: On 03/11/2014 05:11 PM, Dragos Diaconescu wrote: I am not entirely sure what you actually want to achieve but rpm already |
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list