Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way via CLI to determine which version number of a gem is installed on my machine? Similar to yolk -l for python?

I'm trying to see if I have the latest version of compass / sass / zurb foundation. I have a dependency that requires a particular version number. So I need to see what version it is.

share|improve this question
Off-Topic: wth is yolk? Sounds like a knock-off pip! – Oli Feb 22 '13 at 16:19
@Oli yolk is a python package that shows you what packages are installed in your virtualenv (I don't know anything about python) – chrisjlee Feb 22 '13 at 16:22
@Oli but it won't show what version number :( – chrisjlee Feb 22 '13 at 16:33
up vote 28 down vote accepted
gem list

should give you a list of all your gems with version number in brackets behind it

share|improve this answer
Thank you! That's what i needed – chrisjlee Feb 22 '13 at 16:33

StackOverflow has the answer and it might be a more useful place (for you) for Ruby architecture questions (they're still welcome here)

gem outdated

Not being a Ruby dev or having any gems installed, I'm not sure this is going to give you exactly what you're after but it should show you which ones need attention.

Otherwise I would have suggested gem query <package> (searches local) and gem query --remote to see available versions. If you only need local gem versions, the first aught to do.

share|improve this answer

You can do it like this:

bundle show { gem name }

Or look in Gemfile.lock:

grep { gem name } Gemfile.lock
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.