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

Re: apt-get install -- packet list from a file



On 11/03/2010 03:01 AM, Brian Ryans wrote:
> Quoting kuLa on 2010-11-01 06:02:50:
>>> cat file-list|xargs apt-get -y install
>>>> apt-get install `sed "s/\n/ /" /your/listfile`
>>>
>>>> is much better.
>>
>> From my experience it's doing lookup only once cause you're passing
>> package names only once at start.
> 
> ACK.
> 
>> 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.

-- 
Saludos,
Felipe Sateler

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: