I am building rpms on a daily basis. I am actually building more than
22 rpms daily. Out of these 15 rpms do not change on a daily basis
and the following command shows no difference
rpm -qp --dump <rpm name> | cut -d' ' -f1,2,4,5,6,7,8,9,10,11 > /tmp/
file1
rpm -qp --dump <rpm name> | cut -d' ' -f1,2,4,5,6,7,8,9,10,11 > /tmp/
file2
Please note that I am filtering the filed 3, which is the modified
time. However I do include the checksum field. And I expect this
checksum to be identical on two successive days, if nothing changes
for building the command.
After these two commands I do
diff /tmp/file1 /tmp/file2
and show no diff for 15 files.
However, for 7 files (although nothing changes for days and months at
a time) the diff command shows difference. Mainly it lists
some .so, .html and the files listed below.
< /usr/sbin/htcacheclean 18160 79f8824bc89d25e536d812c41ba044d2
0100755 root root 0 0 0 X
< /usr/sbin/httpd 330344 ff1022835365ead1d2f8fa7b39db21bc 0100755 root
root 0 0 0 X
< /usr/sbin/httpd.event 342736 4ce6977a595c63ea2bb528d0b1ef874f
0100755 root root 0 0 0 X
< /usr/sbin/httpd.worker 342416 a7c1a158f40acb7adb1333747a8bc075
0100755 root root 0 0 0 X
< /usr/sbin/httxt2dbm 11152 0ec1ad853b17b0e3ee405bc850f34165 0100755
root root 0 0 0 X
< /usr/sbin/rotatelogs 10072 6caa457eea8af7308d4bc82fe90d520e 0100755
root root 0 0 0 X
< /usr/sbin/suexec 14264 ae7177a2c5d15941720c8cf321676697 0104510 root
apache 0 0 0 X
---
> /usr/sbin/htcacheclean 18160 198280803ee03b913a63667de7fbda51 0100755 root root 0 0 0 X
> /usr/sbin/httpd 330344 2c86bb805291ed6099d8561a408214f2 0100755 root root 0 0 0 X
> /usr/sbin/httpd.event 342736 65f262b960f720f381288b3eb1465733 0100755 root root 0 0 0 X
> /usr/sbin/httpd.worker 342416 a515837ddd456afcc8fe39b95ce59937 0100755 root root 0 0 0 X
> /usr/sbin/httxt2dbm 11152 ab252478f18438bd302d31815ed27dd8 0100755 root root 0 0 0 X
> /usr/sbin/rotatelogs 10072 888524b8f826f4fada86812f7af7bbb2 0100755 root root 0 0 0 X
> /usr/sbin/suexec 14264 f6d5153a28e8078b0dd602c501209212 0104510 root apache 0 0 0 X
I also noticed that the size of .so files is exactly the same.
Could someone from the group tell me, what all goes in the rpm and why
exactly it changes for 7 rpms and not for other 15 rpms, because
nothing changes on the successive days for any of these 22 rpms.
I will greatly appreciate this.
Thanks.
nagrik