Re: yum remove from stdout

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



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux