Skip to content

Commit 065a6ec

Browse files
committed
Updates
1 parent 8e5b81e commit 065a6ec

1 file changed

Lines changed: 29 additions & 23 deletions

File tree

docs/els-for-runtimes/ruby/README.md

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,49 +48,55 @@ alt-ruby provides a more flexible and convenient environment for working with di
4848
<CodeWithCopy>
4949

5050
```text
51-
text install-els-alt-ruby-deb-repo.sh --license-key XXX-XXXXXXXXXXXX
51+
bash install-els-alt-ruby-deb-repo.sh --license-key XXX-XXXXXXXXXXXX
5252
```
5353

54-
</CodeWithCopy>
54+
</CodeWithCopy>
5555

56-
3. Verify that the installation was successful.
56+
After the repository is added, you can install packages using standard commands.
5757

58-
To ensure the installation has been completed successfully, run the following command. It should return info about a package. If information about the package is available, it means that installation was successful. After which, updates will be available for installation from the repository using the usual command:
58+
3. Install Ruby package and use specific versions.
59+
60+
* To install a specific version only (for example, alt-ruby27):
61+
62+
<CodeWithCopy>
5963

60-
<CodeWithCopy>
64+
```text
65+
apt-get install alt-ruby27
66+
```
6167
62-
```text
63-
apt upgrade
64-
```
68+
</CodeWithCopy>
69+
70+
* To find out which packages are available for installation, use the following command:
71+
72+
<CodeWithCopy>
6573
66-
</CodeWithCopy>
74+
```text
75+
apt list -a | grep alt-ruby
76+
```
6777
68-
4. To display detailed information about the installed package, run the following command:
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:
6983
7084
<CodeWithCopy>
7185
7286
```text
73-
apt-cache show alt-ruby31
87+
source /opt/alt/alt-ruby27/enable
88+
ruby -v
7489
```
7590

7691
</CodeWithCopy>
7792

78-
5. Install Ruby package.
93+
4. Update installed packages when updates are available:
7994

8095
<CodeWithCopy>
8196

8297
```text
83-
apt-get install alt-ruby31
98+
apt-get update
99+
apt-get --only-upgrade install alt-ruby*
84100
```
85101

86102
</CodeWithCopy>
87-
88-
6. `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:
89-
90-
```text
91-
$ source /opt/alt/alt-ruby31/enable
92-
$ ruby -v
93-
ruby 3.1.x
94-
```
95-
96-

0 commit comments

Comments
 (0)