2023年3月14日 星期二

[研究]ruby 3.0.4和 rubygem 3.2.33安裝(Rocky Linux 9.1)

[研究]ruby 3.0.4和 rubygem 3.2.33安裝(Rocky Linux 9.1)

2023-03-14

[user1@localhost ~]$ sudo yum -y install ruby rubygems

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for user1: 
Rocky Linux 9 - BaseOS                          1.3 MB/s | 1.8 MB     00:01    
Rocky Linux 9 - AppStream                       1.4 MB/s | 6.6 MB     00:04    
Rocky Linux 9 - Extras                          8.3 kB/s | 8.5 kB     00:01    
Dependencies resolved.
================================================================================
 Package                 Arch        Version               Repository      Size
================================================================================
Installing:
 ruby                    x86_64      3.0.4-160.el9_0       appstream       41 k
 rubygems                noarch      3.2.33-160.el9_0      appstream      256 k
Installing dependencies:
 ruby-libs               x86_64      3.0.4-160.el9_0       appstream      3.2 M
 rubygem-io-console      x86_64      0.5.7-160.el9_0       appstream       25 k
 rubygem-json            x86_64      2.5.1-160.el9_0       appstream       54 k
 rubygem-psych           x86_64      3.3.2-160.el9_0       appstream       51 k
Installing weak dependencies:
 ruby-default-gems       noarch      3.0.4-160.el9_0       appstream       32 k
 rubygem-bigdecimal      x86_64      3.0.0-160.el9_0       appstream       54 k
 rubygem-bundler         noarch      2.2.33-160.el9_0      appstream      372 k
 rubygem-rdoc            noarch      6.3.3-160.el9_0       appstream      400 k

Transaction Summary
================================================================================
Install  10 Packages

Total download size: 4.4 M
Installed size: 16 M
Downloading Packages:
(1/10): rubygems-3.2.33-160.el9_0.noarch.rpm    2.0 MB/s | 256 kB     00:00    
(2/10): rubygem-bundler-2.2.33-160.el9_0.noarch 2.4 MB/s | 372 kB     00:00    
(3/10): rubygem-psych-3.3.2-160.el9_0.x86_64.rp 1.3 MB/s |  51 kB     00:00    
(4/10): rubygem-json-2.5.1-160.el9_0.x86_64.rpm 1.1 MB/s |  54 kB     00:00    
(5/10): rubygem-io-console-0.5.7-160.el9_0.x86_ 776 kB/s |  25 kB     00:00    
(6/10): rubygem-rdoc-6.3.3-160.el9_0.noarch.rpm 1.4 MB/s | 400 kB     00:00    
(7/10): ruby-default-gems-3.0.4-160.el9_0.noarc 181 kB/s |  32 kB     00:00    
(8/10): rubygem-bigdecimal-3.0.0-160.el9_0.x86_ 195 kB/s |  54 kB     00:00    
(9/10): ruby-3.0.4-160.el9_0.x86_64.rpm         132 kB/s |  41 kB     00:00    
(10/10): ruby-libs-3.0.4-160.el9_0.x86_64.rpm   4.3 MB/s | 3.2 MB     00:00    
--------------------------------------------------------------------------------
Total                                           2.4 MB/s | 4.4 MB     00:01     
Rocky Linux 9 - AppStream                       1.7 MB/s | 1.7 kB     00:00    
Importing GPG key 0x350D275D:
 Userid     : "Rocky Enterprise Software Foundation - Release key 2022 <releng@rockylinux.org>"
 Fingerprint: 21CB 256A E16F C54C 6E65 2949 702D 426D 350D 275D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : ruby-libs-3.0.4-160.el9_0.x86_64                      1/10 
  Installing       : rubygem-psych-3.3.2-160.el9_0.x86_64                  2/10 
  Installing       : rubygem-json-2.5.1-160.el9_0.x86_64                   3/10 
  Installing       : rubygem-io-console-0.5.7-160.el9_0.x86_64             4/10 
  Installing       : rubygem-bigdecimal-3.0.0-160.el9_0.x86_64             5/10 
  Installing       : rubygem-rdoc-6.3.3-160.el9_0.noarch                   6/10 
  Installing       : rubygem-bundler-2.2.33-160.el9_0.noarch               7/10 
  Installing       : ruby-default-gems-3.0.4-160.el9_0.noarch              8/10 
  Installing       : ruby-3.0.4-160.el9_0.x86_64                           9/10 
  Installing       : rubygems-3.2.33-160.el9_0.noarch                     10/10 
  Running scriptlet: rubygems-3.2.33-160.el9_0.noarch                     10/10 
  Verifying        : rubygems-3.2.33-160.el9_0.noarch                      1/10 
  Verifying        : rubygem-rdoc-6.3.3-160.el9_0.noarch                   2/10 
  Verifying        : rubygem-bundler-2.2.33-160.el9_0.noarch               3/10 
  Verifying        : ruby-default-gems-3.0.4-160.el9_0.noarch              4/10 
  Verifying        : rubygem-psych-3.3.2-160.el9_0.x86_64                  5/10 
  Verifying        : rubygem-json-2.5.1-160.el9_0.x86_64                   6/10 
  Verifying        : rubygem-io-console-0.5.7-160.el9_0.x86_64             7/10 
  Verifying        : rubygem-bigdecimal-3.0.0-160.el9_0.x86_64             8/10 
  Verifying        : ruby-libs-3.0.4-160.el9_0.x86_64                      9/10 
  Verifying        : ruby-3.0.4-160.el9_0.x86_64                          10/10 

Installed:
  ruby-3.0.4-160.el9_0.x86_64                                                   
  ruby-default-gems-3.0.4-160.el9_0.noarch                                      
  ruby-libs-3.0.4-160.el9_0.x86_64                                              
  rubygem-bigdecimal-3.0.0-160.el9_0.x86_64                                     
  rubygem-bundler-2.2.33-160.el9_0.noarch                                       
  rubygem-io-console-0.5.7-160.el9_0.x86_64                                     
  rubygem-json-2.5.1-160.el9_0.x86_64                                           
  rubygem-psych-3.3.2-160.el9_0.x86_64                                          
  rubygem-rdoc-6.3.3-160.el9_0.noarch                                           
  rubygems-3.2.33-160.el9_0.noarch                                              

Complete!
[user1@localhost ~]$ ruby -v
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
[user1@localhost ~]$ gem -v
3.2.33
[user1@localhost ~]$ 


(完)

沒有留言:

張貼留言