检查ubuntu上安装了哪个版本的rubygems?

Joh*_*ohn 17 rubygems

如何检查我的 ubuntu 机器上安装了哪个版本的 ruby​​gems?

chm*_*eee 21

无论是gem -vgem --version将输出版本号。

想要查询更多的信息:

$ gem -h
RubyGems is a sophisticated package manager for Ruby.  This is a
basic help message containing pointers to more information.

  Usage:
    gem -h/--help
    gem -v/--version
    gem command [arguments...] [options...]

  Examples:
    gem install rake
    gem list --local
    gem build package.gemspec
    gem help install

  Further help:
    gem help commands            list all 'gem' commands
    gem help examples            show some examples of usage
    gem help platforms           show information about platforms
    gem help <COMMAND>           show help on COMMAND
                                   (e.g. 'gem help install')
    gem server                   present a web page at
                                 http://localhost:8808/
                                 with info about installed gems
  Further information:
    http://rubygems.rubyforge.org
Run Code Online (Sandbox Code Playgroud)

我在另一个问题上看到你的 gem 应用程序坏了。并且您已将其更新为gem update --system. 如果是这种情况,可以查看/usr/lib/ruby/gems/1.8/gems/rubygems-update-x.x.x并取xxx值最高的目录


小智 1

只是一个想法,列出已安装的软件包并 grep 查找 ruby​​ 或 gems 或其他:)

dpkg --获取选择