umm, that first "$" was a typo, of course. shouldda been: foreach nam ( * ) rpm -qi -p $nam || echo $nam >> ~/bad-rpms end ;) Gaal
-- BEGIN included message
- To: linux-il@linux.org.il
- Subject: Ensuring rpm integrity
- From: Gaal Yahas <gaal@forum2.org>
- Date: Mon, 13 Oct 1997 10:29:49 +0200
- Reply-To: gaal@forum2.org
Hi. 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). Does anybody have a better idea? Gaal
-- END included message