Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sudo gem update --dry-run?

Tags:

ruby

rubygems

Is there a way to make RubyGems tell if there are any updates available? I find myself constantly running sudo gem update -- often several times every day.

If I could run the command with a flag like --dry-run, then I could asses if the changed gems were significant to add (and also only run it when my tests on my current project were green.

Any suggestions?

like image 828
Jesper Rønn-Jensen Avatar asked Aug 27 '09 11:08

Jesper Rønn-Jensen


People also ask

How do I check RubyGems version?

You can check your Ruby version by running ruby --version , and you can check your RubyGems version by running gem --version . If you need to upgrade Ruby, use your ruby version manager's instructions. If you need to upgrade RubyGems, run gem update --system .

How do I install a specific version of a gem?

Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.


1 Answers

Try:

gem outdated

It will display all gems that need updates (listing both your current version and the latest version).

like image 55
molf Avatar answered Oct 10 '22 05:10

molf