How to upgrade ruby version in Amazon Linux system?

强颜欢笑 提交于 2019-12-05 04:06:18

To install ruby 2.4 do this, sudo yum install -y ruby24.

And to make 2.4 the default version (the old version will still be there) do this, sudo alternatives --set ruby /usr/bin/ruby2.4.

If you are running Amazon Linux 2, later versions of popular software packages (including Ruby) are installed using the Extras Library. To see the latest available version:

$ amazon-linux-extras list

You'll need sudo privileges to install:

$ sudo amazon-linux-extras install ruby2.6
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!