03 - uninstalling a gem.rb

来自「O Reilly Ruby Cookbook source code」· RB 代码 · 共 23 行

RB
23
字号
$ gem uninstall blinkenlightsAttempting to uninstall gem 'blinkenlights'Successfully uninstalled cmdparse version 0.0.2#---require 'rubygems'require 'rubygems/installer'require 'rubygems/remote_installer'Gem::RemoteInstaller.new.install('blinkenlights')require 'rubygems/gem_runner'require 'rubygems/doc_manager'Gem.manage_gemsGem::GemRunner.new.run(['uninstall', 'blinkenlights'])# Successfully uninstalled blinkenlights version 0.0.4#---Gem::Uninstaller.new('actionpack', {}).uninstall# You have requested to uninstall the gem:#        actionpack-1.8.1# actionmailer-0.9.1 depends on [actionpack (= 1.8.1)]# If you remove this gem, the dependency will not be met.# Uninstall anyway? [yN]#---

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?