[CentOS] yum remove from stdout

William L. Maltby CentOS4Bill at triad.rr.com
Sun Jul 13 16:43:40 UTC 2008


On Sun, 2008-07-13 at 11:21 -0500, Johnny Hughes wrote:
> Kenneth Burgener wrote:
> > On 7/13/2008 8:50 AM, David Hláčik wrote:
> >> Hello, little tricky question :
> >>  
> >> i have a file of packages for removal , which looks like that :
> >>  
> >> atk libart_lgpl libXfixes audiofile libXcursor libxslt alsa-lib esound  
> >> how to , provide that file to yum, using pipe, or redirect does not work
> >>  
> >> cat result | yum remove ..
> > 
> > 
> > Try the xargs command:
> > 
> > cat result | xargs yum remove
> 
> OR ...
> 
> yum remove `cat result`

The winner! And if running a modern bash

  yum remove $(cat result)

> <snip>

-- 
Bill




More information about the CentOS mailing list