[CentOS] yum remove from stdout
Filipe Brandenburger
filbranden at gmail.comSun Jul 13 15:35:41 UTC 2008
- Previous message: [CentOS] yum remove from stdout
- Next message: [CentOS] yum remove from stdout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Jul 13, 2008 at 11:16 AM, Ray Van Dolson <rayvd at bludgeon.org> 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
- Previous message: [CentOS] yum remove from stdout
- Next message: [CentOS] yum remove from stdout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list