delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/05/11:16:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Tony Richardson <richardson AT evansville DOT edu>
Subject: Re: Customize setup program.
Date: Mon, 5 Nov 2007 16:14:46 +0000 (UTC)
Lines: 39
Message-ID: <loom.20071105T155650-448@post.gmane.org>
References: <472EF986 DOT 4010806 AT lx DOT it DOT pt>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

João Pedro Oliveira <joao.oliveira <at> lx.it.pt> writes:
> Is it possible to call the setup program in quiet mode (or not quiet) 
> and pass to the setup the packages we want to install? I would not like 
> the user "lost" in all the steps of the cygwin setup...

You can define your own package in the setup.ini file that is
in the Base category and have it "require" the packages that 
you want automatically selected.

For example, I have a small file that looks like this:

@ UEBASE
sdesc: "Required packages for UE programming courses."
ldesc: "Required packages for UE programming courses."
category: Base
requires: a2ps gcc gcc-core gcc-g++ gcc-g77 gcc-gdc gcc-gpc gcc-java ...
version: 1.0.0-0

The requires field actually contains about 100 entries.  I just
append this file to the setup.ini file before running setup

   cat ue_setup.ini >> setup.ini

Then run setup and all of your desired packages are automatically
selected for installation.  It is not quite an unattended install,
but it is just a "click-thru" install.

You can get the initial list of required packages by setting up
one machine with the standard setup and then getting the list
of installed packages from the /etc/setup/installed.db file.

I tweak this from semester to semester to add and remove packages
before we re-image our lab machines.  More importantly, I provide
it to students to ensure that they have all of the necessary software
on their personal machines for software development.

Tony Richardson




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