Re: RPM files md5sum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On 03/11/2014 05:11 PM, Dragos Diaconescu wrote:
> Hi,
> I would need to to save the md5sum for all of the files that exists into
> a rpm. I would need
> to store these md5sums for each file into a separate file, automatically
> after
> the rpm was installed.
> Is there any way to do this in the rpm build SPEC file, in the %post
> section?
> I would need something different than  the command "rpm -qp --dump <rpm
> file>".
> I would need these md5sums to be stored automatically after the rpm was
> installed.

I am not entirely sure what you actually want to achieve but rpm already
stores the check sums of all installed files. You can get them with e.g.

rpm -q --qf "[%{FILENAMES}\t%{FILEDIGESTS}\n]" rpm

Also rpm --verify is capable to check them against the installed files.

Rpm-list mailing list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux