Zero version numbers to clone Cygwin installation


/ Published in: Regular Expression
Save to your folder(s)

A Cygwin installation can be cloned by copying `/etc/setup/installed.db` and zeroing all version numbers, then running the installation utility. The following `sed` script will set the version of most packages to zero. Some non-standard version numbers will not be affected and have to be zeroed by hand.


Copy this code and paste it in your HTML
  1. s/-[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9a-zA-Z]\+-[0-9]\+\.tar/-0.0.0.0-0.tar/
  2. s/-[0-9]\+\.[0-9]\+\.[0-9a-zA-Z]\+-[0-9]\+\.tar/-0.0.0-0.tar/
  3. s/-[0-9]\+\.[_+0-9a-zA-Z]\+-[0-9]\+\.tar/-0.0-0.tar/
  4. s/-[0-9a-zA-Z]\+-[0-9]\+\.tar/-0-0.tar/
  5. s/-[0-9]\+\.tar/-0.tar/

URL: http://cygwin.com/ml/cygwin/2006-05/msg00753.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.