|
| 1 | +# Ruby |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | +## About ALT-Ruby |
| 6 | + |
| 7 | +alt-ruby is a component provided by TuxCare designed for managing Ruby versions on servers and enabling users to run multiple Ruby versions simultaneously. |
| 8 | + |
| 9 | +Here are the key features and characteristics of alt-ruby: |
| 10 | + |
| 11 | +1. **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. |
| 12 | + |
| 13 | +2. **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. |
| 14 | + |
| 15 | +3. **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. |
| 16 | + |
| 17 | +4. **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. |
| 18 | + |
| 19 | +5. **Easy Version Switching** - alt-ruby allows switching between versions, users can easily manage which Ruby version is active in their environment. |
| 20 | + |
| 21 | +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. |
| 22 | + |
| 23 | +## Supported OS and Ruby versions |
| 24 | + |
| 25 | +**Supported architecture:** 64-bit. |
| 26 | + |
| 27 | +| Operating Systems | Package Type | OS Version | |
| 28 | +| :---------------: | :----------: | :------------: | |
| 29 | +| Debian | DEB | 12, 13 | |
| 30 | + |
| 31 | +**Supported Ruby versions:** 2.6, 2.7, 3.0, 3.1 |
| 32 | + |
| 33 | +* Other distros and architectures upon request. |
| 34 | + |
| 35 | +## Installation Instructions |
| 36 | + |
| 37 | +1. Download the installer script: |
| 38 | + |
| 39 | + <CodeWithCopy> |
| 40 | + |
| 41 | + ```text |
| 42 | + wget https://repo.alt.tuxcare.com/alt-ruby-els/install-els-alt-ruby-deb-repo.sh |
| 43 | + ``` |
| 44 | + </CodeWithCopy> |
| 45 | + |
| 46 | +2. Run the installer script with your key. The installation script registers the server to CLN with the key, and adds our PGP key and repository to the server. |
| 47 | + |
| 48 | + <CodeWithCopy> |
| 49 | + |
| 50 | + ```text |
| 51 | + bash install-els-alt-ruby-deb-repo.sh --license-key XXX-XXXXXXXXXXXX |
| 52 | + ``` |
| 53 | + |
| 54 | + </CodeWithCopy> |
| 55 | + |
| 56 | + After the repository is added, you can install packages using standard commands. |
| 57 | + |
| 58 | +3. Install Ruby package and use specific versions. |
| 59 | + |
| 60 | + * To install a specific version only (for example, alt-ruby27): |
| 61 | + |
| 62 | + <CodeWithCopy> |
| 63 | + |
| 64 | + ```text |
| 65 | + apt-get install alt-ruby27 |
| 66 | + ``` |
| 67 | +
|
| 68 | + </CodeWithCopy> |
| 69 | + |
| 70 | + * To find out which packages are available for installation, use the following command: |
| 71 | + |
| 72 | + <CodeWithCopy> |
| 73 | +
|
| 74 | + ```text |
| 75 | + apt list -a | grep alt-ruby |
| 76 | + ``` |
| 77 | +
|
| 78 | + </CodeWithCopy> |
| 79 | +
|
| 80 | + **Using alt-ruby versions:** |
| 81 | + |
| 82 | + `alt-ruby` versions are intended to be installed alongside the system's default ruby and allow multiple versions to coexist. To use a specific `alt-ruby` version, please run it directly from its installation directory, for example: |
| 83 | +
|
| 84 | + <CodeWithCopy> |
| 85 | +
|
| 86 | + ```text |
| 87 | + source /opt/alt/alt-ruby27/enable |
| 88 | + ruby -v |
| 89 | + ``` |
| 90 | + |
| 91 | + </CodeWithCopy> |
| 92 | + |
| 93 | +4. Update installed packages when updates are available: |
| 94 | + |
| 95 | + <CodeWithCopy> |
| 96 | + |
| 97 | + ```text |
| 98 | + apt-get update |
| 99 | + apt-get --only-upgrade install alt-ruby* |
| 100 | + ``` |
| 101 | + |
| 102 | + </CodeWithCopy> |
0 commit comments