Skip to content

Instantly share code, notes, and snippets.

@hmarcelodn
Created November 11, 2013 17:43
Show Gist options
  • Select an option

  • Save hmarcelodn/7417187 to your computer and use it in GitHub Desktop.

Select an option

Save hmarcelodn/7417187 to your computer and use it in GitHub Desktop.
Gist for bash to remove Ruby installation when it is generated by compiling the binaries. First check you source folder and you will find the .installed.list (doing ls -la for instance).
#!/bin/bash
for line in $(cat /home/developer/ruby-2.0.0-p247/.installed.list); do
if [[ -f $line ]]; then
eval "rm $line"
elif [[ -d $line ]]; then
eval "rm -rf $line"
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment