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

Re: aptitude: set all packages auto-installed except given list?



Le samedi 15 janvier, Florian Kulzer écrivit :
> On Sat, Jan 15, 2011 at 13:01:30 +0200, Andrei Popescu wrote:
>  [...]
> 
>   aptitude --schedule-only unmarkauto $(cat pkg.list)
> 
> is somewhat clumsy, but it seems to work here. I only tried a simple
> test case with a list of two packages, and I did not test if
> --schedule-only is really necessary. If your list of packages exceeds
> the maximum number of command line arguments then you have to split the
> file. Backticks should also work if you want to avoid the $(...)
> bashism.

Another simpler form, but perhaps again a bashism is :
# aptitude unmarkauto $(< pkg.list)

No process fork for "cat".

Attachment: signature.asc
Description: Digital signature


Reply to: