Skip to content

Instantly share code, notes, and snippets.

@RunsFor
Forked from sletix/install.sh
Last active August 29, 2015 14:17
Show Gist options
  • Save RunsFor/7af723f4dea1b73cfce9 to your computer and use it in GitHub Desktop.
Save RunsFor/7af723f4dea1b73cfce9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#
# Install latest ruby from brightbox with gems
#
# tested on precise version, and brightbox ruby-1.9.1 package ready for:
# precise(12.04)
#
# run this script on your ubuntu ~>
# `https://gist.githubusercontent.com/RunsFor/7af723f4dea1b73cfce9/raw | sudo bash`
#
apt-get -y update
echo "install system depends"
apt-get -y install python-software-properties
echo "add apt-repository and apt-get update"
apt-add-repository ppa:brightbox/ruby-ng
apt-get -y update
echo "install latest ruby with rubygems and unzip"
apt-get -y install ruby2.1 rubygems unzip
echo "install bundler, rake, chef and ruby-shadow"
gem install rack --version="1.6.0" --no-ri --no-rdoc
gem install chef --version="12.1.2" --no-ri --no-rdoc
gem install bundler ruby-shadow --no-ri --no-rdoc
echo "cleaning"
apt-get -y remove python-software-properties
apt-get -y autoremove
echo "latest ruby installed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment