To check the currently used Ruby version: ruby -vĬategories Ubuntu Tags ubuntu, ubuntu 20.04, Ubuntu 22. You can set some particular Ruby version as the default one or switch to the one that you want to use currently for your project, in case multiple are installed.įor setting default one: rvm use 3.0.0 -default Use rvm use -default 1.9.2 in order to set the Ruby installed via rvm as default. Set default or Switch to the Ruby version you want to use You get 1.8.7 from the installed version of your system. To get some particular old version, declare the version number: rvm install 2.7.2ħ. To get some particular version on your system or the latest one we can use the RVM tool as well. To know and list what are the Ruby versions available to install on your Ubuntu 20.04, we can use this RVM command: rvm list known Output in our case: rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Now to check the RVM version installed on your system: rvm -version If you have projects that are not yet using Bundler you can install the rbenv-gemset plugin. Bundler is a better way to manage application dependencies. To show what ruby is currently the selected default, if any, do: rvm list rvm rubies ruby-1.9.3-p484 x8664 ruby-2.0.0-p481 x8664 > ruby-2.1. You can build and install Ruby yourself, or use ruby-build to automate the process. More then just listing installed Ruby versions, Pik is capable of showing all Ruby versions that can be installed through it. There's nothing to configure except which version of Ruby you want to use. Once the installation is completed reload the shell to start using the RVM command-line tool: source ~/.bashrc As expected, at the moment, Pik is aware only of our installed Ruby 2.2.1 version and it is marked as a default one, in the list that is printed out, by the asterisk () sign at the beginning of the line. Use the following command to download the script from GitHub for the installation of RVM. Therefore, add the GPG Key for the packages to install Ruby Version Manager on Ubuntu 20.04 LTS. Run System update and install curl sudo apt updateĪlthough we can install Ruby using the standard system repository of Ubuntu, however, to get the latest and old versions and manage them together on the same system or for different projects will be a lot easier using RVM. If you are using the graphical desktop version of Ubuntu 20.04 LTS then simply press the Ctrl+Alt+T to open the terminal app to run the required commands. Set default or Switch to the Ruby version you want to use Steps to install RVM to manager Ruby on Ubuntu 20.04 LTS 1.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |