Re: yum remove from stdout

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



On Sun, Jul 13, 2008 at 09:02:44AM -0600, 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
>

You could probably also do something like:

  # for line in `cat packages.txt`; do echo remove $line >> yumshell.txt; done
  # echo run >> yumshell.txt
  # yum shell yumshell.txt

That might be a bit faster as it'll only do the dep-solving one time.

Ray
_______________________________________________
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