回答:
ちょうど考え、インストールされたパッケージをリストし、rubyまたはgemsまたは何のためのgrepでも:)
dpkg --get-selections
dpkg -l | grep rubyはそのインスタンスで動作します。
                    どちらかgem -vまたはgem --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
別の質問で、gemアプリが壊れていることがわかりました。そして、あなたはそれを更新しましたgem update --system。この場合、/usr/lib/ruby/gems/1.8/gems/rubygems-update-x.x.xxxxの最高値を持つディレクトリを調べて取得できます。
dpkg -l rubygems