Ruby gem search: show all remote versions

Oh Dear monitors your entire site, not just the homepage. We crawl and search for broken pages and mixed content, send alerts when your site is down and notify you on expiring SSL certificates.

Start your free 10 day trial! »

Profile image of Mattias Geniar

Mattias Geniar, March 30, 2016

Follow me on Twitter as @mattiasgeniar

Here’s a quick reminder on how to use Ruby gems at the command line to search for remote packages and show all their versions.

This example searches for a gem called “wkhtmltoimage-binary”. By default, it will tell you which is the latest version of that particular gem.

$ gem search wkhtmltoimage-binary

wkhtmltoimage-binary (0.12.2)

If you want to search all available versions, because you might need a very specific one, you can query Ruby Gems with --remote --all.

$ gem search wkhtmltoimage-binary --remote --all

wkhtmltoimage-binary (0.12.2, 0.12.1, 0.12,,

And as a bonus, if you want to install a specific version, you can do so with the -v parameter.

$ gem install wkhtmltoimage-binary -v
Fetching: wkhtmltoimage-binary- (100%)
Successfully installed wkhtmltoimage-binary-
1 gem installed


Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.