delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/27/08:12:21

X-Spam-Check-By: sourceware.org
Date: Mon, 27 Mar 2006 08:12:07 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Multiple cygwin installs
In-Reply-To: <44276D1C.20403@cygwin.com>
Message-ID: <Pine.GSO.4.63.0603270808570.4022@access1.cims.nyu.edu>
References: <4427561D DOT 4060300 AT scytek DOT de> <20060327033442 DOT GA4757 AT trixie DOT casa DOT cgf DOT cx> <20060327035423 DOT GB4757 AT trixie DOT casa DOT cgf DOT cx> <442768EE DOT 6090105 AT activeclickweb DOT com> <44276D1C DOT 20403 AT cygwin DOT com>
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 Sun, 26 Mar 2006, Larry Hall (Cygwin) wrote:

> Brian Hawkins wrote:
> > Just FYI.  I found a pretty good way to manage multiple cygwin installs.
> >
> > I use the windows subst command.
> >
> > It works like this.  Create a directory c:\cyginstalls.  Then beneath
> > it create a directory for each cygwin install you want like cygwin1,
> > cygwin2 whatever.  Then use the subst command like so:
> > subst x: c:\cyginstalls\cygwin1
> >
> > Now install cygwin to x:\.  Change the subst to c:\cyginstalls\cygwin2
> > and install again to x:\.
> >
> > To choose what cygwin you use just subst x to the appropriate folder.
> > Kind of a poor mans symbolic link.
>
> Why are you commandeering one thread to inject another?  If you have
> something you want to say and it has nothing to do with any previous
> thread, just start a new one by sending email to the list.

Very true.

> The flaw that I see with your approach is that you're not taking into
> account any existing mounts in the mount table.  Without resetting the
> mount table in between each installation, you will very likely end up
> with subsequent installations overwriting the first one.

Not quite true.  The mounts aren't a problem in this case, since they'll
be pointing to x: (not whatever x: is substed to).  However, you have to
make *very* sure that a) none of these directories are in the PATH, and b)
none of the programs in those directories are invoked explicitly (in
particular, services will be a problem).

> FWIW, if you want something similar to symbolic links for directories
> and you're running W2K or above with NTFS, you can use reparse points.
> See the "junction" utility from www.sysinternal.com if you're interested
> in this.

True, but the same exact issues arise regarding the PATH and running
programs/services.
	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