威势网络,为您的企业和团队注入互联网活力!
服务热线:138-9741-0341

CentOS8 安装dotnet-sdk-6.0

发布日期:2022/8/30 作者: 浏览:1156

[root@VM-4-11-centos ~]# cat /etc/redhat-release
CentOS Stream release 8

[root@VM-4-11-centos ~]# uname -a
Linux VM-4-11-centos 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


[root@VM-4-11-centos ~]# 

[root@VM-4-11-centos ~]# sudo dnf install dotnet-sdk-6.0

Last metadata expiration check: 0:36:01 ago on Tue 30 Aug 2022 03:06:02 PM CST.
Dependencies resolved.
======================================================================================================================================================================================================
 Package                                              Architecture                 Version                                                                      Repository                       Size
======================================================================================================================================================================================================
Installing:
 dotnet-sdk-6.0                                       x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                        71 M
Installing dependencies:
 aspnetcore-runtime-6.0                               x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       6.9 M
 aspnetcore-targeting-pack-6.0                        x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       1.5 M
 dotnet-apphost-pack-6.0                              x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       3.9 M
 dotnet-host                                          x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       109 k
 dotnet-hostfxr-6.0                                   x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       156 k
 dotnet-runtime-6.0                                   x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                        23 M
 dotnet-targeting-pack-6.0                            x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       883 k
 dotnet-templates-6.0                                 x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       3.5 M
 libicu                                               x86_64                       60.3-2.el8_1                                                                 baseos                          8.8 M
 lttng-ust                                            x86_64                       2.8.1-11.el8                                                                 appstream                       259 k
 netstandard-targeting-pack-2.1                       x86_64                       6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                       appstream                       1.5 M
 userspace-rcu                                        x86_64                       0.10.1-4.el8                                                                 baseos                          101 k

Transaction Summary
======================================================================================================================================================================================================

Install  13 Packages


Total download size: 122 M
Installed size: 422 M
Is this ok [y/N]: y
Downloading Packages:
(1/13): aspnetcore-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                               3.3 MB/s | 1.5 MB     00:00    
(2/13): dotnet-apphost-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                     6.4 MB/s | 3.9 MB     00:00    
(3/13): dotnet-host-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                                 614 kB/s | 109 kB     00:00    
(4/13): aspnetcore-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                      8.3 MB/s | 6.9 MB     00:00    
(5/13): dotnet-hostfxr-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                          670 kB/s | 156 kB     00:00    
(6/13): dotnet-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                   1.9 MB/s | 883 kB     00:00    
(7/13): dotnet-templates-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                        5.5 MB/s | 3.5 MB     00:00    
(8/13): lttng-ust-2.8.1-11.el8.x86_64.rpm                                                                                                                             976 kB/s | 259 kB     00:00    
(9/13): dotnet-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                           11 MB/s |  23 MB     00:02    
(10/13): netstandard-targeting-pack-2.1-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                             2.6 MB/s | 1.5 MB     00:00    
(11/13): userspace-rcu-0.10.1-4.el8.x86_64.rpm                                                                                                                        600 kB/s | 101 kB     00:00    
(12/13): dotnet-sdk-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64.rpm                                                                              21 MB/s |  71 MB     00:03    
(13/13): libicu-60.3-2.el8_1.x86_64.rpm                                                                                                                               6.1 MB/s | 8.8 MB     00:01    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                  29 MB/s | 122 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                              1/1 
  Installing       : dotnet-host-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                                   1/13 
  Installing       : aspnetcore-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                 2/13 
  Installing       : dotnet-apphost-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                       3/13 
  Installing       : dotnet-hostfxr-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                            4/13 
  Installing       : dotnet-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                     5/13 
  Installing       : dotnet-templates-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                          6/13 
  Installing       : netstandard-targeting-pack-2.1-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                7/13 
  Installing       : userspace-rcu-0.10.1-4.el8.x86_64                                                                                                                                           8/13 
  Running scriptlet: userspace-rcu-0.10.1-4.el8.x86_64                                                                                                                                           8/13 
  Installing       : lttng-ust-2.8.1-11.el8.x86_64                                                                                                                                               9/13 
  Running scriptlet: lttng-ust-2.8.1-11.el8.x86_64                                                                                                                                               9/13 
  Installing       : libicu-60.3-2.el8_1.x86_64                                                                                                                                                 10/13 
  Running scriptlet: libicu-60.3-2.el8_1.x86_64                                                                                                                                                 10/13 
  Installing       : dotnet-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                           11/13 
  Installing       : aspnetcore-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                       12/13 
  Installing       : dotnet-sdk-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                               13/13 
  Running scriptlet: dotnet-sdk-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                               13/13 
  Verifying        : aspnetcore-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                        1/13 
  Verifying        : aspnetcore-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                 2/13 
  Verifying        : dotnet-apphost-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                       3/13 
  Verifying        : dotnet-host-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                                   4/13 
  Verifying        : dotnet-hostfxr-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                            5/13 
  Verifying        : dotnet-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                            6/13 
  Verifying        : dotnet-sdk-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                                7/13 
  Verifying        : dotnet-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                     8/13 
  Verifying        : dotnet-templates-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                                          9/13 
  Verifying        : lttng-ust-2.8.1-11.el8.x86_64                                                                                                                                              10/13 
  Verifying        : netstandard-targeting-pack-2.1-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                                                                               11/13 
  Verifying        : libicu-60.3-2.el8_1.x86_64                                                                                                                                                 12/13 
  Verifying        : userspace-rcu-0.10.1-4.el8.x86_64                                                                                                                                          13/13 

Installed:
  aspnetcore-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64           aspnetcore-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64          
  dotnet-apphost-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64          dotnet-host-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                            
  dotnet-hostfxr-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64               dotnet-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                     
  dotnet-sdk-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64                   dotnet-targeting-pack-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64              
  dotnet-templates-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64             libicu-60.3-2.el8_1.x86_64                                                                           
  lttng-ust-2.8.1-11.el8.x86_64                                                                  netstandard-targeting-pack-2.1-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64         
  userspace-rcu-0.10.1-4.el8.x86_64                                                             

Complete!

[root@VM-4-11-centos ~]# 

官网说不支持,但是发现可以安装6.0,同时,它连运行时也安装好了。

[root@VM-4-11-centos ~]# sudo dnf install aspnetcore-runtime-6.0
Last metadata expiration check: 0:40:50 ago on Tue 30 Aug 2022 03:06:02 PM CST.
Package aspnetcore-runtime-6.0-6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@VM-4-11-centos ~]# 



下拉加载更多评论
最新评论
暂无!