답변:
그냥 아이디어, 설치된 패키지를 나열하고 루비 또는 보석 또는 그 밖의 것에 대한 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 update --system
. 이 경우 /usr/lib/ruby/gems/1.8/gems/rubygems-update-x.x.x
xxx 값이 가장 높은 디렉토리를 찾아서 가져올 수 있습니다.
dpkg -l rubygems