In <[🔎] ias3dm$dta$1@dough.gmane.org>, Felipe Sateler wrote: >On 11/03/2010 03:01 AM, Brian Ryans wrote: >> Quoting kuLa on 2010-11-01 06:02:50: >>>>> apt-get install `sed "s/\n/ /" /your/listfile` >>>>> is much better. >>> >>> cat file-list|xargs apt-get -y install >> >> apt-get -y install foo >> (read db; grab foo; install foo; write new db) >> apt-get -y install bar >> (read db; grab bar; install bar; write new db) >> apt-get -y install baz >> (read db; grab baz; install baz; write new db) > >This happens only if you pass the -l flag to xargs. Otherwise it passes >all at the same time. ..up to the maximum command-line length allowed on the system xargs was ./configure'd on. When installing 16000 packages, you'll find find xargs invokes apt-get multiple times. If you use the sed, your shell will just give you an error. I recommend xargs. If you are going to use that sed expression (which is not quite the same as xargs), I recommend using $() instead of `` for subshell expansion. (It nests better with itself and/or "".) -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
Attachment:
signature.asc
Description: This is a digitally signed message part.