From: "Bartosz DziewoƄski" Date: 2012-10-11T00:37:57+09:00 Subject: Re: How get list of all installed modules/gems in ruby I assume you want the in Ruby code? Gem::Specification.all() will return a list of Gem::Specification objects you can then do stuff on (e.g. Gem::Specification.all().map{|g| [g.name, g.version.to_s] } to return a list of their names and versions). Full documentation is available here: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/rubygems/rdoc/Gem/Specification.html -- Matma Rex