[RUBY] Update RVM on AWS Cloud9

"RVM" is pre-installed in Cloud9 environment, but I have to update RVM when installing the latest stable version of Ruby, so make a note.

What is RVM

** RVM ** is an abbreviation for ** R ** uby ** V ** ersion ** M ** analger. Used to manage Ruby versions. For example, you can install, uninstall, switch versions, and so on.

Official site RVM: Ruby Version Manager - RVM Ruby Version Manager - Documentation

Install the key from the RVM site

To ensure security, RVM checks for signatures. If you do not have the key installed, leave it.

RVM: Ruby Version Manager - Copy the command from. It is convenient to triple-click.

In the Cloud9 console, paste and run the command after sudo (run with root privileges).

You have now installed the key.

Check the RVM version

rvm -v

It's 1.29.8 right now, but I want to make it 1.29.10!

Update RVM version

Update (upgrade) is a get command. rvm get <version>

If you want to update to 1.29.10, it will be as follows. rvm get 1.29.10

Now, specify the version and execute the get command. スクリーンショット 2020-06-01 14.50.10.png

Display the RVM version for confirmation. rvm -v スクリーンショット 2020-06-02 2.38.48.png You have now updated.

(Bonus) Display RVM help

Use this when you want to look up a command.

rvm help Or rvm Both are displayed.

Recommended Posts

Update RVM on AWS Cloud9
Build Java 8 development environment on AWS Cloud9
Created the first LINEbot on AWS Cloud9 (Rails + Heroku deployment)
Install docker on AWS EC2
AWS Cloud9 environment construction Update Ruby to the latest stable version
Install Docker on AWS Ubunt 20.04 LTS
Install AWS IoT Greengrass on Ubuntu
[Java] How to update Java on Windows
To beginners launching Docker on AWS
Build a Minecraft server on AWS
Is Java on AWS Lambda slow?
Run the AWS CLI on Docker
Hello World on AWS Lambda + Java
Try Quarkus on IBM Cloud Shell
Run C binaries on AWS Lambda
Run GPU-required batch processing on AWS