Super User is a question and answer site for computer enthusiasts and power users. 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

When I run an apt-get update, apt-get dist-upgrade, the location of /usr/bin/ruby changes from /usr/local/bin/ruby to /etc/alternatives/ruby. This ends up breaking several cron jobs until I remember to correct it back. Why is it doing this?

Thanks!

share|improve this question

Don't move the binary, symlink it

ln -s /etc/alternatives/ruby /usr/bin/ruby

but better yet use update-alternatives

update-alternatives --config ruby

Oh and the why, there are multiple branches of ruby (ruby1.8 vs ruby1.9) similar to python2 vs python3 which affect script compatibility.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .