Ruby
Endless Lifecycle Support (ELS) for Ruby from TuxCare provides security fixes for Ruby versions that have reached their end-of-life. This allows you to continue running your server vulnerability-free.
About ALT-Ruby
alt-ruby is a component provided by TuxCare designed for managing Ruby versions on servers and enabling users to run multiple Ruby versions simultaneously.
Here are the key features and characteristics of alt-ruby:
Multiple Ruby Versions - alt-ruby allows the installation and usage of various Ruby versions on a single server. This enables users to select the Ruby version that best suits their applications.
User Segmentation - alt-ruby allows administrators to provide different Ruby versions for different users or applications. Each user can choose the Ruby version that suits their project.
Enhanced Compatibility - alt-ruby is designed to ensure maximum compatibility with various Ruby applications and frameworks. This includes optimizations and changes to make it compatible with a wide range of Ruby applications.
Updates and Support - TuxCare provides regular updates for alt-ruby, including bug fixes, performance improvements, and updates for new Ruby versions. This helps ensure the security and currency of Ruby usage.
Easy Version Switching - alt-ruby allows switching between versions; users can easily manage which Ruby version is active in their environment.
alt-ruby provides a more flexible and convenient environment for working with different Ruby versions on a single server, which is particularly useful in development and production environments where multiple applications have varying requirements for Ruby versions.
Supported OS and Ruby versions
| Operating Systems | Package Type | OS Version | Ruby versions |
|---|---|---|---|
| EL 8 (AlmaLinux, CentOS, CentOS Stream, CloudLinux, Oracle Linux, etc.) | RPM | 8.x | 2.7, 3.0, 3.1, 3.2 |
| EL 9 (AlmaLinux, CentOS, CloudLinux, Oracle Linux, etc.) | RPM | 9.x | 2.7, 3.0, 3.1, 3.2 |
| EL 10 (AlmaLinux, CloudLinux, Oracle Linux, etc.) | RPM | 10.x | 2.7, 3.0, 3.1, 3.2 |
| Debian | DEB | 11 | 2.7, 3.0, 3.1, 3.2 |
| Debian | DEB | 12 | 2.6, 2.7, 3.0, 3.1, 3.2 |
| Debian | DEB | 13 | 2.6, 2.7, 3.0, 3.1, 3.2 |
| Ubuntu | DEB | 22.04 | 2.7, 3.0, 3.1, 3.2 |
| Ubuntu | DEB | 24.04 | 2.7, 3.0, 3.1, 3.2 |
| Alpine Linux | APK | 3.22 | 2.6, 2.7, 3.0, 3.1, 3.2 |
Supported architectures: x86_64 on all OSes; aarch64 on Alpine Linux in addition to x86_64
Other distros and architectures available upon request. Contact sales@tuxcare.com for more information.
Installation
Prerequisites
- A valid TuxCare ELS license key — contact sales@tuxcare.com to obtain one
- Root or
sudoaccess to the server
Download the installer script
wget https://repo.alt.tuxcare.com/alt-ruby-els/install-els-alt-ruby-rpm-repo.shRun the installer script with your license key
The script registers the server with CLN, adds the PGP key and repository.
sh install-els-alt-ruby-rpm-repo.sh --license-key XXX-XXXXXXXXXXXXInstall a Ruby version
yum install alt-ruby27To see available packages:
yum list available 'alt-ruby*'Verify the installation
Check that the binary exists and returns the expected version:
/opt/alt/<ruby-version>/bin/ruby -vOptionally, add it to
PATHto use it as default:export PATH=/opt/alt/<ruby-version>/bin:$PATH ruby -v which rubyUpdate packages
yum update 'alt-ruby*'