The commands below roughly express what I want. They seem to work for my system.
# Rubygems seems to set up its own alternatives, but switching between gem1.8 and gem1.9.1 didn't switch the ruby interpreter. sudo update-alternatives --remove-all gem # 1.8 -> 1.8.7 sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.8 5 --slave /usr/bin/gem rubygems /usr/bin/gem1.8 --slave /usr/bin/irb irb /usr/bin/irb1.8 # 1.9 -> 1.9.2 sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 10 --slave /usr/bin/gem rubygems /usr/bin/gem1.9.1 --slave /usr/bin/irb irb /usr/bin/irb1.9.1 -- /usr/bin/ruby should use the alternatives system https://bugs.launchpad.net/bugs/634703 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs