Skip to content

Instantly share code, notes, and snippets.

@h3ct0rjs
Forked from tr-github/install-common-packages.sh
Created February 15, 2016 00:39
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 h3ct0rjs/24593a13b88fa1a73d9b to your computer and use it in GitHub Desktop.
Save h3ct0rjs/24593a13b88fa1a73d9b to your computer and use it in GitHub Desktop.
APT-CYG Common/Initial packages
#!/bin/bash
#
# Cygwin packages
#
packages=(
curl
cygutils
grep
gzip
ncurses
sed
which
rsync
ruby
subversion
git
bc
mysql
make
gcc4-core
gcc4-g++
gcc4
tcl
lftp
libsqlite3-devel
sqlite3
)
#
# Gems
#
gems=(
git-up
semver
compass
mailcatcher
)
# Installing Cygwin packages
len=${#packages[*]}
i=0
while [ $i -lt $len ]; do
package=${packages[$i]}
count=$[$i +1]
echo -e " \n\n\n\n-------------------> Cygwin ($count/$len) : installing $package"
apt-cyg install "$package"
let i++
done
# Installing Cygwin packages
len=${#gems[*]}
i=0
while [ $i -lt $len ]; do
gem=${gems[$i]}
count=$[$i +1]
echo -e " \n\n\n\n-------------------> Ruby Gem ($count/$len) : installing $gem"
gem install "$gem" --verbose
let i++
done
echo -e "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment