This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Install packages (-P option) listed in a file?


> My Google-fu seems to be weak this morning. 
> 
> Does the -P option to the installer support reading packages to be installed from a file instead of directly from the command line argument? If so, what's the syntax (I tried -P@filename).  Remember this has to run in a Windows cmd shell, so solutions like
> 
>     setup-x86.exe -P$(paste -d, -s filename)
> 
> are not allowed :-)

This may not be exactly what you want, but my standard solution for years
now has been to maintain a cmd script like this:

setup-x86.exe ^
--quiet-mode ^
--packages ^
aria2,^
atool,^
autoconf,^
automake,^
autossh,^

and so on. The caret (^) character at the end of every line is the line
continuation character in cmd scripts. The list of package names is
comma-delimited, which is what the --packages option expects, although
that's not documented.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]