delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/03/22:28:50

X-Spam-Check-By: sourceware.org
Date: Tue, 3 Oct 2006 22:28:38 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Vinod Gupta <vinod AT Princeton DOT EDU>
cc: cygwin AT cygwin DOT com
Subject: Re: Un-attended install ALL
In-Reply-To: <452314B5.8020008@princeton.edu>
Message-ID: <Pine.GSO.4.63.0610032226060.12019@access1.cims.nyu.edu>
References: <452314B5 DOT 8020008 AT princeton DOT edu>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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:
> >
> > <http://sources.redhat.com/cygwin-apps/package-server.html>
> >
> > if you haven't already.
>
> I tried but failed :(
> I create allpackage as per instructions, here are contents:
>
> # cd <mymirror>
> # 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
> <main>/release/ and added contents of above setup.hint to
> <main>/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
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019