Skip to content

Instantly share code, notes, and snippets.

@brighttechnilogy
Forked from UbuntuEvangelist/ruby.sh
Created January 10, 2024 17:49
Show Gist options
  • Save brighttechnilogy/9e41f412b1eced527d8388f6c91d6a92 to your computer and use it in GitHub Desktop.
Save brighttechnilogy/9e41f412b1eced527d8388f6c91d6a92 to your computer and use it in GitHub Desktop.
Ruby Uninstall Linux
#!/bin/bash
# This script will do Ruby Uninstall Linux and reboot Linux
sudo apt-get purge ruby
sudo rm -rf /usr/local/lib/ruby
sudo rm -rf /usr/lib/ruby
sudo rm -f /usr/local/bin/ruby
sudo rm -f /usr/bin/ruby
sudo rm -f /usr/local/bin/irb
sudo rm -f /usr/bin/irb
sudo rm -f /usr/local/bin/gem
sudo rm -f /usr/bin/gem
sudo apt update -y
sudo apt upgrade -y
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment