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

Re: Ensuring rpm integrity




>> I'm burning a CD with lots of rpms. Since I got those by ftp,
>> I want to make sure they're okay before I actually burn.
>> 
>> The only way I could find to check rpms so far was
>> 
>> 	foreach nam ( * )
>> 	rpm -qi -p $nam || echo $nam >> ~/bad-rpms
>> 	end
>> 
>> Now, this looks pretty shaky, since it doesn't verify the whole
>> rpm but rather checks only the very beginning of the rpm file
>> (where the header info is stored - and it's not even compressed).
>
>sorry, I searched the man, www.redhat.org and www.rpm.org, doesn't seem to
>have an integrity check, this is a very gross oversight, IMHO...
>
>Donnie, is there a better way?

Use 'rpm -K $nam' to check the PGP and MD5 sums.  If you don't have
PGP use --nopgp and you'll just be checking the MD5 (which is faster
and just as accurate for this purpose).

Please direct these questions to the rpm-list@redhat.com, not to
me directly.


--Donnie

--
 Donnie Barnes    http://www.redhat.com/~djb    djb@redhat.com   "Bah."
   Challenge Diversity.  Ignore People.  Live Life.  Use Linux.  879.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
_Things You'd NEVER Expect A Southerner To Say_ by Vic Henley:     
**  I don't want a flannel shirt for Christmas.