You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the repository is added, you can install packages using standard commands.
57
57
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>
59
63
60
-
<CodeWithCopy>
64
+
```text
65
+
apt-get install alt-ruby27
66
+
```
61
67
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>
65
73
66
-
</CodeWithCopy>
74
+
```text
75
+
apt list -a | grep alt-ruby
76
+
```
67
77
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:
69
83
70
84
<CodeWithCopy>
71
85
72
86
```text
73
-
apt-cache show alt-ruby31
87
+
source /opt/alt/alt-ruby27/enable
88
+
ruby -v
74
89
```
75
90
76
91
</CodeWithCopy>
77
92
78
-
5. Install Ruby package.
93
+
4. Update installed packages when updates are available:
79
94
80
95
<CodeWithCopy>
81
96
82
97
```text
83
-
apt-get install alt-ruby31
98
+
apt-get update
99
+
apt-get --only-upgrade install alt-ruby*
84
100
```
85
101
86
102
</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:
0 commit comments