Skip to content

Instantly share code, notes, and snippets.

@maxxd
Created September 29, 2013 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxxd/6753145 to your computer and use it in GitHub Desktop.
Save maxxd/6753145 to your computer and use it in GitHub Desktop.
Dump installed cygwin packages
# Dump list of all installed packages (except libraries)
cygcheck -cd | tail -n +3 | cut -f 1 -d " " | grep -iv ^lib | grep -iv ^_ > packages.txt
# Show list of package name (comma separated) in a suitable format for re-installation
sed -e :a -e '$!N; s/\n/,/; ta' packages.txt
# Reinstall packages from list
#/cygdrive/c/cygwin/setup -q --packages `sed -e :a -e '$!N; s/\n/,/; ta' packages.txt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment