FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 05-09-2011, 06:55 PM
Aaron Hanson
 
Default checking digest of one file

Hi All -

I can't figure out how to see and validate a specific file digest on my Fedora 14 system; I think I must be missing something simple.

Here's a quick example of what I'm trying to do:

[user@host]$ rpm -q --dump coreutils |grep bin/ls
/bin/ls 109208 1288784582 def61ac5ca608ba6f41eb08aa3eaa0b2274a67512938030830 051d792fb3946e 0100755 root root 0 0 0 X
[user@host]$ sha256sum /bin/ls
881282512562ad22095371f0865be66f5424b7590e6c73eb15 aae884cf9edd1c /bin/ls

Why doesn't the digest match? 'rpm' says the package is fine:

[user@host]$ rpm -V coreutils
[user@host]$ echo $?
0

Thanks.
Aaron
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 05-09-2011, 07:08 PM
Rex Dieter
 
Default checking digest of one file

On 05/09/2011 01:55 PM, Aaron Hanson wrote:
> Hi All -
>
> I can't figure out how to see and validate a specific file digest on my Fedora 14 system; I think I must be missing something simple.
>
> Here's a quick example of what I'm trying to do:
>
> [user@host]$ rpm -q --dump coreutils |grep bin/ls
> /bin/ls 109208 1288784582 def61ac5ca608ba6f41eb08aa3eaa0b2274a67512938030830 051d792fb3946e 0100755 root root 0 0 0 X
> [user@host]$ sha256sum /bin/ls
> 881282512562ad22095371f0865be66f5424b7590e6c73eb15 aae884cf9edd1c /bin/ls
>
> Why doesn't the digest match? 'rpm' says the package is fine:


prelink? (something which rpm handles).

-- Rex
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 05-09-2011, 09:50 PM
Aaron Hanson
 
Default checking digest of one file

Yes! Thanks Rex for the clue.

Solution:

[user@host]$ prelink -y /bin/ls |sha256sum
def61ac5ca608ba6f41eb08aa3eaa0b2274a67512938030830 051d792fb3946e -
[user@host]$ rpm -q --dump coreutils |grep bin/ls
/bin/ls 109208 1288784582 def61ac5ca608ba6f41eb08aa3eaa0b2274a67512938030830 051d792fb3946e 0100755 root root 0 0 0 X

-Aaron
________________________________________
From: packaging-bounces@lists.fedoraproject.org [packaging-bounces@lists.fedoraproject.org] on behalf of Rex Dieter [rdieter@math.unl.edu]
Sent: Monday, May 09, 2011 12:08 PM
To: packaging@lists.fedoraproject.org
Subject: Re: [Fedora-packaging] checking digest of one file

On 05/09/2011 01:55 PM, Aaron Hanson wrote:
> Hi All -
>
> I can't figure out how to see and validate a specific file digest on my Fedora 14 system; I think I must be missing something simple.
>
> Here's a quick example of what I'm trying to do:
>
> [user@host]$ rpm -q --dump coreutils |grep bin/ls
> /bin/ls 109208 1288784582 def61ac5ca608ba6f41eb08aa3eaa0b2274a67512938030830 051d792fb3946e 0100755 root root 0 0 0 X
> [user@host]$ sha256sum /bin/ls
> 881282512562ad22095371f0865be66f5424b7590e6c73eb15 aae884cf9edd1c /bin/ls
>
> Why doesn't the digest match? 'rpm' says the package is fine:


prelink? (something which rpm handles).

-- Rex
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 03:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org