Re: yum remove from stdout

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



On Sun, Jul 13, 2008 at 11:16 AM, Ray Van Dolson <rayvd@xxxxxxxxxxxx> wrote:
> 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

Or, without the tempfile and in one line:

# { for line in `cat packages.txt`; do echo remove "$line"; done; echo
run; } | yum shell

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

Not really. "xargs" will by default call yum remove with a long line
of parameters. It will only break that into multiple commands if the
line is too long (too many parameters or too many characters). man
xargs for the details, see the -n and -s parameters.

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