Install rubygems-update

gem install rubygems-update
update_rubygems
gem update --system

run this commands as root or use sudo.

Answer from Sacx on Stack Overflow
🌐
Moncef Belyamani
moncefbelyamani.com › how-to-update-gems-in-your-gemfile
How to Update Gems in Your Gemfile
March 26, 2022 - They often introduce breaking changes when the second digit changes, such as going from Rails 6.0.x to 6.1.x. If something breaks when you update a gem, and you don’t have time to figure out how to make it work with the latest version, go back to the previous version and specify 3 digits. It’s important to note that just because you specify a newer version number doesn’t necessarily mean it can be installed. Most gems in your Gemfile will also depend on other gems. If you go back to the Jekyll page in Rubygems, you will see all the gems it depends on under “Runtime Dependencies”. This means that when you install Jekyll, you are also installing a bunch of other gems, and the gems that they depend on, and so on.
Discussions

Can anyone explain how to update rubygems on an old version of ruby
Did you copy the original bundled dependencies by accident somehow? That would be my first guess at bizarre errors and segfaults. I don't see the Rubygem version being the culprit at this point. That said, are you able to use Docker? To be honest, as noble as it is to get this working without Docker, this is exactly where Docker would shine. Incrementally start changing the tags of the Docker image as you correct deprecations amongst versions. If you wanted to abandon Docker once you were up to date, that would probably be fine, but using it as an intermediary would possibly work better for you. More on reddit.com
🌐 r/ruby
3
0
January 17, 2024
how to update a gem?
So bundler is ment to update gem's a an categorize them? Is that its only purpose? Is bundler used in combination with rail? ... Correct, bundler is used in combination with rails. Rails is technically a gem too. Bundler can be used in Rails, Sinatra, RubyGems, Rubymotion. More on teamtreehouse.com
🌐 teamtreehouse.com
3
November 4, 2015
Updating default gems

Normally multiple versions of a gem wouldn't matter as bundler would sort this out, but default gems are treated differently and this often results in both versions of the same gem being loaded twice, regardless of Gemfile, and depending on how other gems in the bundle require the default gems.

Can you say more about this? I didn't know it was possible for multiple versions of the same gem to ever be loaded simulataneously, default or not.

So I guess the answer is... I don't handle this specially, because I was not aware of the problem you are talking about. So I just do what you describe, and figured it was fine -- I thought the version in the Gemfile would always be used (if using bundler), or the latest version in the system (if not using bundler, but I pretty much always use bundler).

More on reddit.com
🌐 r/ruby
4
7
November 7, 2019
Where does travis store gems?

If you use bundle install to install the gems, you'd use bundle exec ... to run a binary provided by one of those gems. Hacking the PATH is not the correct way.

More on reddit.com
🌐 r/ruby
7
3
April 23, 2019
🌐
RubyGems.org
rubygems.org › pages › download
Download RubyGems | RubyGems.org | your community gem host
RubyGems is a package management framework for Ruby. Upgrade to the latest RubyGems at the command line: $ gem update --system · If you run into problems that prevent you from upgrading rubygems the standard way, you can try upgrading manually: Download the latest version ·
🌐
Reddit
reddit.com › r/ruby › can anyone explain how to update rubygems on an old version of ruby
r/ruby on Reddit: Can anyone explain how to update rubygems on an old version of ruby
January 17, 2024 -

I need to get some old software working so I can flood it with tests and then start the process of updating it to modern versions of everything.

This means that I need to be working with some old versions of things temporarliy.

What I am fundamentally trying to do is just run "bundle install" on an old rails app.

But that gives a "Marshal.load reentered at marshal_load" error.

Lookat at the differenc in versions between an old working dev box and the new new box, the only obvious thing is that rubygems is at 3.0.9 on the old working box and 2.4.5.5 on the new box I'm trying to setup.

State of play:

I am using rbenv on a Chromebook under Crostini i.e. Debian 10 buster.

I have got ruby 2.2.10 installed successfully (which was fun)

"gem --version" gives me 2.4.5.5

I am trying to get rubygems up to 3.0.9, to match the old dev box which is known to work.

So my question is, how do I update rubygems 2.4.5.5 to 3.0.9, ideally within the rbenv setup?

"gem update --system" just segfaults.

What are my other options?

(FYI, I have a plethora of rubies installed on the new box using rbenv, and the newer rubies do indeed have newer rubygems, eg. the ruby 3.1.2 has rubygems 3.3.7 etc.)

(FYI2, the old box uses RVM, new new box is using rbenv.)

EDIT:- Ok, reading this back, the core issue is how to stop "bundle install" exploding, the rubygems thing was just a guess.

🌐
RubyGems
guides.rubygems.org › command-reference
Command Reference - RubyGems Guides
Editor command can be specified with -e option, otherwise rubygems will look for editor in $EDITOR, $VISUAL and $GEM_EDITOR variables. ... The outdated command lists gems you may wish to upgrade to a newer version. You can check for dependency mismatches using the dependency command and update the gems with the update or install commands.
🌐
Medium
medium.com › @leog7one › how-to-update-your-gem-on-rubygems-org-6abb45f200a7
How To: Update your Gem on RubyGems.org | by Leonardo Guzman | Medium
November 30, 2017 - I updated the Version Number as RubyGems does not allow Repushing of gem versions and also used this post as a reference for versioning.
Find elsewhere
🌐
Mo, Lingbo
molingbo.github.io › rubygems-3.2.29 › UPGRADING
How to upgrade/downgrade Rubygems: - Mo, Lingbo (莫凌波)
Do make sure that you don’t have any other versions of rubygems-update installed when you run the second command. ... $ ruby --disable-gems -S gem which rubygems ~/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb $ rm ~/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb $ rm -rf ~/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems $ gem -v 1.3.7
🌐
Medium
medium.com › @shaymalchi › my-foolproof-algorithm-for-upgrading-ruby-on-rails-f0dea750c3c5
My foolproof algorithm for upgrading Ruby on Rails | by Shay Malchi | Medium
June 1, 2020 - Instead, we’re going to “nail” gem versions to the ones already in the Gemfile.lock, and then updating with the smallest increments, gem by gem. This will save you a lot of headache. Example: using your Gemfile.lock, add versions to all gems in your Gemfile. Don’t change the rails gem version yet. In the end it should look like this: source 'http://rubygems.org'gem 'rails', '4.2.11.1'group :test do gem 'rspec', '3.4.0' gem 'factory_girl', '4.8.0' gem 'database_cleaner', '1.6.1' endgem 'mysql2', '0.3.21'
🌐
Medium
medium.com › cedarcode › reduce-fear-of-bundle-update-with-this-4-step-process-e021e8808c48
A Guide to Update Gems with bundle update | by Gonzalo | Cedarcode | Medium
November 1, 2018 - Well, in that case none of the previous commands updated rails version for you. Of course, that’s expected… and probably why you — or someone else — intentionally set a constraint for rails in the Gemfile in the first place. Here is when bundler’s built-in command bundle outdated becomes handy. $ bundle outdated --groupsFetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies...Outdated gems included in the bundle: ===== Without group ===== * actioncable (newest 5.2.0, installed 5.1.6) * actionmailer (newest 5.
🌐
GitHub
gist.github.com › larsthegeek › 4029012
Update RubyGems to a specific version (for legacy system installs) · GitHub
gem update --system 2.7.8 · Copy link · Copy Markdown · For Ruby 2.7: gem update --system 3.4.22 · Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment ·
🌐
Ernestobossi
ernestobossi.com › ruby › update-gems-ruby
Update all Ruby gems
My objective was to be able to update all my gems in a single bash line, luckily i managed to do this by issuing the following line: ... This will be a post about category theory and the relation between it and functors, monads and monoids in Haskell ... Last week i wanted to update some ruby projects that i have packed in gems and wanted to update their dependencies (just to have the project updated).
🌐
Ruby on Rails
guides.rubyonrails.org › upgrading_ruby_on_rails.html
Upgrading Ruby on Rails — Ruby on Rails Guides
Run the Update task. Run your tests. You can find a list of all released Rails gems here.
🌐
GeeksforGeeks
geeksforgeeks.org › ruby › how-to-update-gems-with-bundler
How to update gems with Bundler? - GeeksforGeeks
January 2, 2023 - This will update all the gems in the Gemfile to the latest versions available on RubyGems.org.
🌐
GoRails
gorails.com › episodes › how-to-upgrade-ruby-versions
How to Upgrade Ruby Versions | GoRails
Over time, you'll need to upgrade the Ruby version of your Rails application. For example, a new version of Ruby was released since we started this series that fixes a couple security issues in Ruby so we'll teach you how to upgrade your Ruby version.
Published   April 5, 2023
🌐
Fandom
duolingo.fandom.com › wiki › League
League | Duolingo Wiki | Fandom
March 18, 2026 - One league consists of one of the 10 possible gem ranks, ranked from lowest to highest: Bronze, Silver, Gold, Sapphire, Ruby, Emerald, Amethyst, Pearl, Obsidian, and Diamond.
🌐
Ruby Programming Language
ruby-lang.org › en
Ruby Programming Language
Ruby 3.3.11 has been released. This release includes an update to the zlib gem addressing CVE-2026-27820, along with some bug fixes.
🌐
The Arreat Summit
classic.battle.net › diablo2exp › items › cube.shtml
The Arreat Summit - Items: The Horadric Cube
The Horadric Cube is a quest item obtained in Act II which can be used to complete several quests. In addition to that task, it can be also used as a permanent backpack to store additional items and create new ones · Place the Horadric Cube in your inventory. Notice it only takes up 2x2 slots
🌐
Team Treehouse
teamtreehouse.com › community › how-to-update-a-gem
how to update a gem? (Example) | Treehouse Community
November 4, 2015 - And so bundler's job is to download, install, update, and otherwise manage other gems. Bundler would even manage the rails gem. Here is a good source to look for gems https://rubygems.org/
🌐
Stardew Valley Wiki
stardewvalleywiki.com › Forge
Forge - Stardew Valley Wiki
2 weeks ago - Note that "level" refers to the number of times a weapon was forged with the specific gem. So for instance, if a weapon was forged with a Ruby, then an Emerald, and then an Amethyst, the weapon stats will have +10% attack power, +2 speed, and +1 weight.
🌐
Redmine
redmine.org › boards › 2 › topics › 2380
RubyGems' .gem update file - Redmine
Hi, sorry. I'm not sure if it's alright to post a topic about RubyGems here, but anyway, I just would like to ask how to update RubyGems 1.2.0. I believe that it has an update file in .gem, but I'm not actually sure how do I actually update RubyGems 1.2.0.