-
-
Save RunsFor/7af723f4dea1b73cfce9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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