RubyMine is an integrated development environment (IDE) from JetBrains, tailored for Ruby development. It provides intelligent code assistance, powerful debugging tools, and integration with popular frameworks and version control systems. This tutorial demonstrates how to install RubyMine on Ubuntu 24.04.
Install RubyMine
First, get the latest RubyMine release number using the JetBrains API:
RUBYMINE_VERSION=$(curl -s "https://data.services.jetbrains.com/products/releases?code=RM&latest=true&type=release" | grep -Po '"version":"\K[0-9.]+')
Next, download the RubyMine archive based on the retrieved version:
wget -O rubymine.tar.gz https://download.jetbrains.com/ruby/RubyMine-$RUBYMINE_VERSION.tar.gz
Create installation directory and unpack RubyMine into it:
sudo mkdir -p /opt/rubymine
sudo tar xf rubymine.tar.gz --strip-components=1 -C /opt/rubymine
We can safely delete the archive after extraction:
rm -rf rubymine.tar.gz
Testing RubyMine
To check that RubyMine works correctly, start it from the terminal:
/opt/rubymine/bin/rubymine
When the IDE opens, you'll have the option to generate a desktop entry directly from the welcome screen. Doing this will let you launch RubyMine from the applications menu instead of running it through the command line.
Uninstall RubyMine
If you no longer need RubyMine, delete the installation directory:
sudo rm -rf /opt/rubymine
Remove the desktop shortcut:
sudo rm -rf /usr/share/applications/jetbrains-rubymine.desktop
Clear out cached files and user-specific data:
rm -rf ~/.{cache,config,local/share}/JetBrains/RubyMine*
Leave a Comment
Cancel reply