How to uninstall Ruby completely from Linux Mint

I'm a passionate software developer.
Search for a command to run...

I'm a passionate software developer.
No comments yet. Be the first to comment.
Components Introduction In order to truly understand props in React, we first need to be clear on what components are. A component is a reusable piece of the user interface that encapsulates structure, styling, and behavior. Instead of repeating the ...

Introduction Context By default, Codespace is using the GITHUB_TOKEN env var (the “Codespaces token”), which can’t create repos. It’s necessary to authenticate gh with a token/account that has the right scopes, or create the repo on the web first. Ob...

Solution Here it is: git commit --allow-empty-message -m "" Explanation To create a Git commit without a message, or with an empty message, you can use the --allow-empty-message flag with the git commit command. git commit --allow-empty-message -m "...

Steps Cleanup phase This phase’s goal is to removes existing containers, volumes, networks and images Stop and remove volumes docker compose down --volumes --remove-orphans The previous command stops and removes containers, networks, and default volu...

Steps Stop the service It’s not mandatory, but before uninstalling, it's a good practice to stop any running Docker services. sudo systemctl stop docker Remove docker packages It’s used to completely and forcefully remove a list of specified packag...

Ruby is a dynamic, object-oriented programming language known for its simplicity and productivity.
It was created in the mid-1990s by Yukihiro Matsumoto (often referred to as "Matz") in Japan. Ruby is designed to be both powerful and easy to read and write, with syntax inspired by Perl and Smalltalk.
sudo apt remove ruby ruby-dev ruby-full
Let's uninstall any Ruby packages that were installed via the package manager.
Open a terminal and run the previous command to uninstall Ruby and related packages.
This command removes the Ruby interpreter, development headers, and any additional Ruby packages that were installed.
sudo gem uninstall --all
Ruby installations may leave behind some directories or configuration files.
Let's manually remove these directories if they exist:
rm -rf ~/.gem
rm -rf /usr/local/lib/ruby
You can use the find command to search for any remaining files related to Ruby:
sudo find / -name "*ruby*" -or -name "*gem*"
This command searches the entire filesystem for files and directories containing "ruby" or "gem" in their names.
Review the output and delete any remaining files or directories that are related to Ruby.
ruby -v
If Ruby has been successfully removed, you should see a message indicating that the command is not found.
Well-done. You did a great job!

Thank you for reading this article.
If you have any questions, thoughts, suggestions, or corrections, please share them with us.
We appreciate your feedback and look forward to hearing from you.
Feel free to suggest topics for future blog articles. Until next time!