Skip to content

Instantly share code, notes, and snippets.

@mdirik
Forked from wjrogers/install.bat
Last active July 22, 2016 04:54
Show Gist options
  • Save mdirik/8954864 to your computer and use it in GitHub Desktop.
Save mdirik/8954864 to your computer and use it in GitHub Desktop.
@ECHO OFF
REM -- Automates cygwin installation
SETLOCAL
REM -- Change to the directory of the executing batch file
CD %~dp0
REM -- Configure our paths
SET SITE=http://ftp.cc.uoc.gr/mirrors/cygwin/
SET LOCALDIR=%CD%
SET ROOTDIR=C:/cygwin64
REM -- These are the packages we will install (in addition to the default packages)
SET PACKAGES=aria2,ascii,bashdb,ca-certificates,cabextract,checkbashisms,colordiff,colorgcc,curl,cygrunsrv,cygwin-doc,cygwin-x-doc,dash,diffutils,patch,dos2unix,file,gcc,gnupg,guile,lua,lynx,make,nano,openssh,python,pytlint,python3,rsync,ruby,sqlite3,stow,txt2regex
REM -- Do it!
ECHO *** INSTALLING DEFAULT PACKAGES
setup-x86_64 -q --arch x86_64 --no-desktop --download -L --no-verify --site %SITE% --local-package-dir "%LOCALDIR%" --root "%ROOTDIR%"
ECHO.
ECHO.
ECHO *** INSTALLING CUSTOM PACKAGES
setup-x86_64 -q --arch x86_64 --no-desktop --download -L --no-verify --site %SITE% --local-package-dir "%LOCALDIR%" --root "%ROOTDIR%" -P %PACKAGES%
REM -- Show what we did
ECHO.
ECHO.
ECHO cygwin installation updated
ECHO - %PACKAGES%
ECHO.
ENDLOCAL
PAUSE
EXIT /B 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment