Skip to content

Instantly share code, notes, and snippets.

View tkimva's full-sized avatar

Taeyoung Kim tkimva

View GitHub Profile
@tkimva
tkimva / cygwinlist.md
Created January 16, 2018 17:43 — forked from erikvip/cygwinlist.md
Import/Export Cygwin List of installed packages

Import & Export Cygwin List of installed Packages

If you want to go from 32 to 64 bit Cygwin but keep all the packages[1], you might find yourself in a spot where you would like to export the list of cygwin packages and also be able to install cygwin with all these packages again. I will tell you how. Open your Cygwin shell and enter

cygcheck -c -d | sed -e "1,2d" -e 's/ .*\$//' > packagelist

This will simply dump a list of installed packages. To install Cygwin 64 with these packages selected, download setup-x86_64[2] and execute it with the command line parameters

./setup-x86_64 -P `awk 'NR==1{printf \$1}{printf ",%s", \$1}' packagelist`
@tkimva
tkimva / font-el7.sh
Created October 26, 2016 00:38
installs better than cleartype font rendering on rhel/centos 7
#!/usr/bin/bash
set -e
# set up nux-dextop repo to install font packages. skip if this repo had already set up.
# can be done by either rpm or yum app.
# /usr/bin/sudo /usr/bin/rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
/usr/bin/sudo /usr/bin/yum localinstall http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
# disable nux-dextop by default and only enable it as needed as part of running yum.