X-Spam-Check-By: sourceware.org Message-ID: <4523B64E.7050906@cygwin.com> Date: Wed, 04 Oct 2006 09:25:34 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Un-attended install ALL References: <452314B5 DOT 8020008 AT princeton DOT edu> <452342CC DOT 4010908 AT princeton DOT edu> In-Reply-To: <452342CC.4010908@princeton.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Vinod Gupta wrote: > On 10/3/2006 10:28 PM, Igor Peshansky wrote: >> On Tue, 3 Oct 2006, Vinod Gupta wrote: >> >> >>>> Vinod Gupta wrote: >>>> >>>> Vinod K Gupta wrote: >>>> >>>> We have a local mirror of selected packages from which we >>>> install cygwin on >>>> user machines. When we perform un-attended installation >>>> using setup.exe -q >>>> -L -l -R... the installer installs only the Base packages. >>>> How can we tell >>>> setup to install ALL available packages? >>>> >>>> Lary Hall wrote: >>>> There are many ways but the easiest is to create a >>>> setup.hint file >>>> with an empty package that's part of the Base category. Then >>>> list all the >>>> packages you want to install as its dependencies. Obviously, >>>> you can leave >>>> out other base packages. Voila! :-) >>>> >>>> >>>> Thanks Lary, >>>> >>>> I am not sure what you mean by "empty package" and how do you make >>>> it known to the installer? >>>> If I create a setup.hint and copy it to, say, release\base-files\, >>>> will that work? >>>> This sounds like fooling the installer. I can't believe that there >>>> is nothing like "--InstallAll" option to the setup.exe installer. >>>> >>>> >>>> Lary Hall wrote: >>>> Fooling the installer into believing there is another package to >>>> install? >>>> Yes, that should be outlawed. ;-) >>>> >>>> Whatever you want to call it, this is the way to do it. See: >>>> >>>> >>>> >>>> if you haven't already. >>>> >>> I tried but failed :( >>> I create allpackage as per instructions, here are contents: >>> >>> # cd >>> # ls -l release/allpackage/ >>> total 1.0K >>> -rwxr-xr-x 1 vinod 0 2006-10-03 15:39 allpackage-0.0.1-1-src.tar.bz2 >>> -rwxr-xr-x 1 vinod 0 2006-10-03 15:39 allpackage-0.0.1-1.tar.bz2 >>> >> ^^^ >> This is one thing that's wrong. You should create an empty tarball and >> then bzip2 it. The size should be 46 bytes. >> >> >>> -rwxr-xr-x 1 vinod 650 2006-10-03 15:45 setup.hint >>> >>> # cat release/allpackage/setup.hint >>> @ allpackage >>> sdesc: "Dummy package to include all my non-Base packages" >>> ldesc: "Dummy package to include all my non-Base packages" >>> category: Base >>> requires: X11 _update-info-dir alternatives ash base-files >>> base-passwd bash >>> binutils bzip2 cabextract coreutils crypt cygrunsrv cygutils cygwin >>> cygwin-doc >>> d db diffutils editrights expat file findutils gawk gcc gcc-mingw gdb >>> gdbm >>> gettext grep groff gzip jpeg less libiconv libpng login make man >>> mingw-runtime >>> minires mktemp ncurses openssh openssl pcre perl pine ping pkg-config >>> pkgconfig popt readline run sed sharutils tar tcltk tcsh termcap >>> terminfo >>> texinfo time tnef unzip w32api wget which zip zlib >>> >>> # bunzip setup.bz2 >>> # cat setup >>> >>> # This file is automatically generated. If you edit it, your >>> # edits will be discarded next time the file is generated. >>> # See http://cygwin.com/setup.html for details. >>> # >>> >> >> This is another. You should use the genini script to generate setup.ini >> (and/or setup.bz2, but setup.ini should suffice). >> >> >>> Installer still installs only the Base packages. >>> I thought genini did not generate good setup. I copied >>> release/allpackage to >>>
/release/ and added contents of above setup.hint to >>>
/release/setup.ini >>> >>> Installer still installs only the Base packages :( >>> >>> What I am doing wrong? >>> >> >> You need more information in setup.ini than what's in your setup.hint. >> Try browsing any of the mirrors for their setup.ini and use that as a >> template. >> Igor >> > > OK, I think I found the problem and a work around, if not the solution. > > The following line must be added to setup.ini even if the allpackage is > empty: > install: release/allpackage/allpackage-0.0.1-1.tar.bz2 > > The installer is looking at only
/release/, and NOT > mymirror/release/. If I add allpackage folder to
/release/ and add > contents of setup.hint to
/setup.ini (including install: line) > then it works. But this is not a good solution because
/setup.ini > will be overwritten next time I update cygwin. > > The local packages folder has two mirrors - the main (http%3a%2f.../) > and mymirror/ (which has only this empty allpackage). How do I tell > setup.exe to look inside BOTH mirrors? Type in the name of your mirror site when you are asked for the mirrors you wish to use. > All this pain, just because some one did not include "--InstallAll" > option to setup.exe?? As the saying goes, . Of course, you can always look to see if any of your issues with 'setup.exe' are addressed by a snapshot . -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/