Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
Last active January 10, 2024 17:49
Show Gist options
  • Save UbuntuEvangelist/1da4571b0fd81aad105590e134d61401 to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/1da4571b0fd81aad105590e134d61401 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