Forrest logo
back to the gem tool

gem:tldr:9fb8c

gem: Uninstall a gem.
$ gem uninstall ${gemname}
try on your machine

The command gem uninstall ${gemname} is used to uninstall a Ruby gem from your system.

Here's what each part of the command means:

  • gem: It refers to the command-line tool gem that comes with the Ruby programming language. This tool is used for managing Ruby gems (libraries or packages).

  • uninstall: It is an argument or subcommand of the gem tool, specifying that you want to uninstall a gem.

  • ${gemname}: It is a placeholder for the name of the gem you want to uninstall. You need to replace ${gemname} with the actual name of the gem you want to remove. For example, if you want to uninstall a gem called example_gem, the command would be gem uninstall example_gem.

When you run this command, it will search for the specified gem on your system and proceed to remove it completely. This includes removing all the related files, directories, and dependencies associated with that gem.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gem tool