How to install the previous version of the package on the console on cygwin?

I need to write a script that deploys many cygwin applications using svn-1.6-17. All my attempts were completed by installing either svn-1.7 or nothing.

I tried to install subversion, subversion-1.6, subversion-1.6-17. All this was useless.

How to install the previous version of the package using the console on cygwin?

+7
source share
2 answers

I just went through this, and I'm adding this to help the next person. Note: the same method will probably work for any Cygwin package.

We have a third-party product that directly talks to the subversion server, but saves its directories in 1.6 format. If the local directories are updated, the tool is interrupted. But I needed a way to do svn cleanup in those moments when the tool got into a bad state.

Here is how I did it:

  • Cygwin Time Machine at crouchingtigerhiddenfruitbat.org stores archives of previous releases. Each release consists of a setup.bz2 file (compressed setup.ini file) and a collection of related archives for packages of this version.

  • I was looking for a cygwin-announce mailing list for subversion updates. The latest update for 1.6 was June 10, 2011.

  • Next, I went through the crouchingtigerhiddenfruitbat.org indexes of previous releases from this date until I found the latest version of svn 1.6. It was released on July 1, 2011.

  • I downloaded setup.bz2 from the appropriate directory on crouchingtigerhiddenfruitbat (in this case: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2011/07/01/062011/setup.bz2 ). I used bunzip2 to unpack setup.bz2 into a simple text file. I found a subversion entry and copied the tarball installation path (release / subversion / subversion-1.6.17-1.tar.bz2). The section you are looking for is as follows:

     @ subversion sdesc: "A version control system" ldesc: "Subversion is a version control system that aims to be a compelling replacement for CVS in the open source community" category: Devel requires: libapr1 libaprutil1 libdb4.5 libexpat1 libgcc1 libintl8 libneon27 libsasl2 libserf0_1 libsqlite3_0 zlib0 cygwin version: 1.6.17-1 install: release/subversion/subversion-1.6.17-1.tar.bz2 775392 ed0c4a3cc494564c0539dffedcd5e8b6 source: release/subversion/subversion-1.6.17-1-src.tar.bz2 5551632 1b41eede9a14ea4cedcc462b06b1f7cb [prev] version: 1.6.16-1 install: release/subversion/subversion-1.6.16-1.tar.bz2 1476151 ecbc29b1e1d9694bf8792e3871efa5f8 source: release/subversion/subversion-1.6.16-1-src.tar.bz2 5557232 cb12425d2345a57341f16ad0ff559b84 
  • We are interested in this line, which gives the relative path to the 1.6 svn file:

     install: release/subversion/subversion-1.6.17-1.tar.bz2 775392 
  • I extracted the tarball for subversion and extracted it into the temporary directory (temp). I moved the contents of temp / usr / bin to the svn16 directory.

Now I can add this directory to the search path and get svn 1.6 functionality like this:

 PATH=~/svn16:$PATH svn up 

Note. Cygwin Time Machine seems to no longer allow you to browse directories. This means that you need to start with root to find the package.

Updated by links since I just needed to do it again.

Note 2: Updated links to crouchingtigerhiddenfruitbat

+9
source

1) Download the subversion package from the download site offered by the cygwin installer. I personally took it here (64-bit) and saved it in an empty directory.

EDIT: if you want a 32-bit version, just remove the "_64" from the url.

Choose A Download site

2) Run the cygwin installer and select Install from Local Directory when it asks you to select the download source.

3) Find everything related to subversion . Remove the unnecessary version and install the old one. A newer version is already removed in the image.

enter image description here

+7
source

All Articles