| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| X-IronPortListener: | Outbound_SMTP |
| X-IronPort-Anti-Spam-Filtered: | true |
| X-IronPort-Anti-Spam-Result: | AqUAAFLMjE6cKEcV/2dsb2JhbABCmQaNHIF4gQWBUwEBAQEDEig6FQIBCA0nAhAfEyUBAQQBGhqjNZsLhkhhBIwXjRyMGg |
| From: | "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
| To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>, |
| "'Andrew Schulman'" <schulman DOT andrew AT epamail DOT epa DOT gov> | |
| Date: | Wed, 5 Oct 2011 17:33:11 -0400 |
| Subject: | RE: setup.exe: force installation of specific package versions? |
| Message-ID: | <0105D5C1E0353146B1B222348B0411A20A311FAE37@NIHMLBX02.nih.gov> |
| References: | <b7vo87pjjdlpkqqi52e6lbid591ro7m81q AT 4ax DOT com> |
| In-Reply-To: | <b7vo87pjjdlpkqqi52e6lbid591ro7m81q@4ax.com> |
| MIME-Version: | 1.0 |
| 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 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id p95LXaZK032123 |
Andrew Schulman sent the following at Wednesday, October 05, 2011 12:01 PM
>I run setup unattended as e.g.
>
>setup.exe --quiet-mode --packages aria2,atool,autoconf,...
>
>This works great, except for one thing: There are some packages for
>which the "current" versions are broken, at least for me, so I want
>to keep the "prev" or some other already-installed version of the
>package. Is there a way to specify in the setup invocation that I want a
>particular version of a particular package?
>
>For example, I'd like to write
>
>setup.exe --quiet-mode --packages bzr=2.3.1-1,openssh=prev,...
>
>I've tried to run that, but it doesn't work - everything between the =
>and the next comma is ignored. So the current versions of those packages
>always get installed.
>
>Is there a way to do this that's not documented yet? If not, is there
>any inclination to add it?
I have not tested either of the following. These are just ideas. YMMV.
Presumably, you already have the packages that you wish to keep as prev.
How about after --packages listing only packages that you are willing
to upgrade, i.e., omit those packages that you don't want updated?
Does that work for you?
I suppose that the above might not work if you are trying to preserve
something that is not listed but is pulled in as a dependency.
Otherwise, you might consider trying to do it in stages.
1. Do a download with setup.
2. Have a script that looks in the directories of packages that you
want to preserve and deletes everything that isn't the desired
version.
3. Do a local install with setup.
Good luck,
- Barry
Disclaimer: Statements made herein are not made on behalf of NIAID.
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |