GEM is a file organization package, and many of the general Ruby Plugins are provided by this variety of packages. Let's take a look at the use of gems
Ruby-v #查看ruby version ruby-e "require" watir "; Puts Watir::ie::version ' #查看watir版本
RVM list Known #列出已知的ruby版本
RVM Install 1.9.3
RVM Use 1.9.3 | RVM Use System
RVM Use 1.9.3--default
RVM List #列出本地ruby版本
RVM Remove 1.9.2
For details see RVM Practical Guide Https://ruby-china.org/wiki/rvm-guide
Gem-v #gem版本
Gem Source #gem资源
Gem sources-a url |gem sources-r URL #gem添加或删除配置源
Gem Update #更新所有包
Gem Update--system #更新RubyGems软件
Gem install Rake #安装rake, from a local or remote server
Gem install rake--remote #安装rake from a remote server
Gem install watir-v (or--version) 1.6.2# specifies the installation version of the
Gem Uninstall Rake #卸载rake包
Gem List D #列出本地以d打头的包
Gem Query-n ' [0-9] '--local #查找本地含有数字的包
Gem Search Log--both #从本地和远程服务器上查找含有log字符串的包
Gem Search Log--remoter #只从远程服务器上查找含有log字符串的包
Gem Search-r log #只从远程服务器上查找含有log字符串的包
Gem Help #提醒式的帮助
Gem Help install #列出install命令 assistance
Gem Help examples #列出gem命令使用一些例子
Gem Build Rake.gemspec #把rake. Gemspec compiled into Rake.gem
Gem Check-v Pkg/rake-0.4.0.gem #检测rake是否有效
Gem Cleanup #清除所有包旧版本, keep the latest version
Gem Contents Rake #显示rake包中所包含的文件
Gem Dependency rails-v 0.10.1 #列出与rails相互依赖的包
Gem Environment #查看gem的环境
Ruby+gem Common Commands