Would you believe, I tried that as

        rpm -qa | awk '{printf("rpm --verify %s\n",$1)} | xargs

and it didn't work... DOH!  Completely forgot that it would
have been better to try the 

        rpm -qa | xargs rpm --verify

route!

Feeling sheepish... I should have caught that!

Bill Ward

-----Original Message-----
From: Philippe Moutarlier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 02, 2000 3:21 PM
To: [EMAIL PROTECTED]
Cc: recipient.list.not.shown; @nswcphdn.navy.mil
Subject: Re: Last question on RPM (at least for a while, and from me)
PROM ISE!


Ward William E PHDN <[EMAIL PROTECTED]> writes:

> This didn't quite work for me, but it did give me what I needed:
> 
> rpm -qa | awk '{printf("rpm --verify %s\n",$1)}' > /tmp/list

maybe an xargs would have save you the use of awk

rpm -qa | xargs rpm --verify

Philippe



> chmod 777 /tmp/list
> /tmp/list > listout
> 
> Thanks a bunch! :)
> Bill Ward
> 
> -----Original Message-----
> From: Mike Owen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 02, 2000 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Last question on RPM (at least for a while, and from me)
> PROM ISE!
> 
> 
> > From: Ward William E PHDN [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 02, 2000 12:33 PM
> > To: Redhat-List (E-mail)
> > Subject: Last question on RPM (at least for a while, and from me)
> > PROMISE!
> > 
> > 
> > Ok, it's more than one question... but they are all related.  
> > I know that
> > somewhere in the heart of it, I'll have to do an rpm 
> > --verify.  But how do I
> > get it to tell me all the installed packages?
> 
> 
> doing
> 
> rpm -qa
> 
> will give you a list of installed packages. You could then pipe it to rpm
> --verify to verify all of them:
> 
> rpm -qa | rpm --verify 
> 
> HTH,
> Mike
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to