bulk rpm delete

Paul Howarth paul at city-fan.org
Wed May 18 18:30:50 UTC 2005


On Wed, 2005-05-18 at 22:58 +0530, Rahul Sundaram wrote:
> Rahul Sundaram wrote:
> 
> > Claude Jones wrote:
> >
> >> I did a rpm -qa | grep kde-il8n and now I have a long list of the 
> >> il8n's which I want to delete. I thought I could just rpm -e 
> >> kde-il8n* but it doesn't work. I've read man pages and searched for a 
> >> solution - I'm sure it's staring me in the face - could someone tell 
> >> me what I'm omitting?
> >>  
> >>
> > The Bash shell gets greedy here and interprets * before the RPM 
> > command receives it so you use the following instead which uses \  to 
> > tell the shell to ignore it (ie) an escape sequence
> >
> > rpm -e kde-i18n\*
> >
> oops. Got that wrong. try this one instead
> 
> rpm -e $(rpm -qa | grep kde-il8n)

Or even:
# rpm -e $(rpm -qa kde-il8n\*)

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the users mailing list