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

Re: bulk rpm delete



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)

regards
Rahul


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