How to Uninstall a Ruby Gem

Features can be added to the Ruby programming language by downloading and installing special packages called gems. These packages are fetched from a central repository by a program named "gem," which normally comes with Ruby. Most Ruby programmers are immediately familiar with the steps needed to install a Ruby gem, but may not be familiar with how to remove gems that are no longer needed from the system. This can be accomplished using a special command of the Gem package manager.

Instructions

    • 1

      Open a terminal. In Windows, you can do this by clicking "Start" and "Run." When the "Run" dialog appears, type "cmd." On Mac OS X, you can simply click the Spotlight button and type "Terminal."

    • 2

      Type the following command to uninstall a gem:

      gem uninstall GEMNAME

      Replace "GEMNAME" with the name of the gem you would like to install.

    • 3

      Answer any prompts given by the uninstall command. Depending on the configuration of the gem itself, you may be asked to specify the versions to uninstall or asked to confirm the uninstallation. In addition, the uninstall may fail if the gem detects that other gem packages depend on the one you wish to uninstall.

Tips & Warnings

  • You can force a gem to uninstall despite warnings that gem may give you about dependencies by adding a "-i" (for "ignore") to the command.

  • If you have forgotten the full name of the gem you would like to uninstall, you can type the command "gem list" to list all the installed gems on your system.

Related Searches:

References

Comments

You May Also Like

  • How to Uninstall Gems

    Ruby is a complex computer programming language that uses specially packaged self-contained programs or libraries. These libraries are called gems. Gems contain...

  • How to Reinstall the Ruby Gems

    Ruby libraries, called gems, are often distributed using a special format and package-management program called gem. However, the command line, non-graphical user...

  • How to Manually Install a Ruby Gem

    Gem is a package manager designed to make it easy to find, download, and install libraries for use by the Ruby programming...

  • How to Install a Ruby Gem Git

    Git is a powerful tool used by developers to back up and host their software for others to view, modify and use....

  • How to Remove Gems From a Gear in WOW

    In the World of Warcraft (WoW) online multiplayer game, players can take on quests, interact with non-player-characters (such as merchants), battle monsters...

  • How to Upgrade Ruby Gems

    Ruby is an open source, object oriented programming language. By creating different objects, called Gems, programmers can assemble software packages that are...

  • How to Install Rake Gems

    Rake is a build application for the Ruby Programming Language designed to allow developers to create Unix-style Makefiles for their Ruby applications....

  • How to Build Ruby Gems

    Ruby is a programming language created by Japanese computer scientist Yukihiro Matsumoto. Ruby libraries are distributed using a centralized network and package...

  • How to Uninstall Winzip

    WinZip is a program that allows you to compress computer files or open and extract already compressed files to your computer. You...

  • How to Update Ruby Gems

    The Ruby programming language, originally developed by Yukihiro "Matz" Matsumoto, uses a program known as Ruby Gems to collect, distribute and install...

  • Uses for Star Ruby Gems

    Uses for Star Ruby Gems. Star rubies have a brilliant, star-shaped sheen caused in part by inclusions of the mineral rutile, often...

  • How to Reinstall RubyGems

    RubyGems describes itself as the "premier ruby packaging system." RubyGems performs package management for the Ruby computer programming language and uses a...

  • How to Hunt for Gems

    Hunting for gems is an activity one can do in nearly every geographic location around the world. To properly hunt for gems...

  • How to Install Ruby Gems in Linux

    RubyGems is a software package manager for use with the Ruby programming language. It gives users a standardized method of sharing libraries...

  • Problems With an Incomplete Uninstall

    Problems With an Incomplete Uninstall. Programs that are not uninstalled completely from your computer can leave files, folders, processes and registry entries...

  • How to Remove a Broken 3M Command Strip

    The 3M Command Strip is a handy way to decorate rooms without having to damage the wall by hammering nails and using...

  • How to Identify Rubies and Gems

    Identifying gemstones and rubies is a challenging process. For complete accuracy, it is best to take the stones to a professional jeweler...

Related Ads

Featured