Answers for "remove ruby version from /.gem folder"

2

ruby gem uninstall

The command is simply: gem uninstall <gem-name>
# for a general uninstall

NOTE: maybe you need sudo, depens on your user rights. like so

  sudo gem uninstall <gem-name>

# remove all old versions of the gem
gem cleanup <gem-name>

# choose which ones you want to remove
gem uninstall <gem-name>

# remove version 1.1.9 only
gem uninstall <gem-name> --version 1.1.9

# remove all versions less than 1.3.4
gem uninstall <gem-name> --version '<1.3.4'

# remove ALL INSTALLED Gems (and starting over)
gem uninstall -aIx

  Options
  -a, --[no-]all                   Uninstall all matching versions
  -I, --[no-]ignore-dependencies   Ignore dependency requirements while
                                 uninstalling
  -x, --[no-]executables           Uninstall applicable executables without
                                 confirmation
Posted by: Guest on June-18-2020
0

gem uninstall version specific

# For complete gem
gem uninstall gem-name
#EX: gem uninstall capybara

# For spesific version
gem uninstall gem-name -v version-number
# EX: gem uninstall capybara -v 1.1.4
Posted by: Guest on March-17-2021

Browse Popular Code Answers by Language