Created
September 29, 2013 14:51
-
-
Save maxxd/6753145 to your computer and use it in GitHub Desktop.
Dump installed cygwin packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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