centos7安装.net5.0(core)

摘要:
[root@vmcentos7~]#rpm-Uvhhttps://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpmRetrievinghttps://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpmPreparing...#####

[root@vmcentos7 ~]# rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
Retrieving https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
Preparing... ################################# [100%]
Updating / installing...
1:packages-microsoft-prod-1.0-1 ################################# [100%]
[root@vmcentos7 ~]# yum install dotnet-sdk-5.0
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
packages-microsoft-com-prod | 3.0 kB 00:00:00
packages-microsoft-com-prod/primary_db | 289 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package dotnet-sdk-5.0.x86_64 0:5.0.102-1 will be installed
--> Processing Dependency: netstandard-targeting-pack-2.1 >= 2.1.0 for package: dotnet-sdk-5.0-5.0.102-1.x86_64
--> Processing Dependency: dotnet-runtime-5.0 for package: dotnet-sdk-5.0-5.0.102-1.x86_64
--> Processing Dependency: dotnet-targeting-pack-5.0 for package: dotnet-sdk-5.0-5.0.102-1.x86_64
--> Processing Dependency: dotnet-apphost-pack-5.0 for package: dotnet-sdk-5.0-5.0.102-1.x86_64
--> Processing Dependency: aspnetcore-runtime-5.0 for package: dotnet-sdk-5.0-5.0.102-1.x86_64
--> Processing Dependency: aspnetcore-targeting-pack-5.0 for package: dotnet-sdk-5.0-5.0.102-1.x86_64
--> Running transaction check
---> Package aspnetcore-runtime-5.0.x86_64 0:5.0.2-1 will be installed
---> Package aspnetcore-targeting-pack-5.0.x86_64 0:5.0.0-1 will be installed
---> Package dotnet-apphost-pack-5.0.x86_64 0:5.0.2-1 will be installed
---> Package dotnet-runtime-5.0.x86_64 0:5.0.2-1 will be installed
--> Processing Dependency: dotnet-hostfxr-5.0 >= 5.0.2 for package: dotnet-runtime-5.0-5.0.2-1.x86_64
--> Processing Dependency: dotnet-runtime-deps-5.0 >= 5.0.2 for package: dotnet-runtime-5.0-5.0.2-1.x86_64
---> Package dotnet-targeting-pack-5.0.x86_64 0:5.0.0-1 will be installed
---> Package netstandard-targeting-pack-2.1.x86_64 0:2.1.0-1 will be installed
--> Running transaction check
---> Package dotnet-hostfxr-5.0.x86_64 0:5.0.2-1 will be installed
--> Processing Dependency: dotnet-host >= 5.0.2 for package: dotnet-hostfxr-5.0-5.0.2-1.x86_64
---> Package dotnet-runtime-deps-5.0.x86_64 0:5.0.2-1 will be installed
--> Processing Dependency: libicu for package: dotnet-runtime-deps-5.0-5.0.2-1.x86_64
--> Running transaction check
---> Package dotnet-host.x86_64 0:5.0.2-1 will be installed
---> Package libicu.x86_64 0:50.2-4.el7_7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
dotnet-sdk-5.0 x86_64 5.0.102-1 packages-microsoft-com-prod 80 M
Installing for dependencies:
aspnetcore-runtime-5.0 x86_64 5.0.2-1 packages-microsoft-com-prod 8.0 M
aspnetcore-targeting-pack-5.0 x86_64 5.0.0-1 packages-microsoft-com-prod 2.1 M
dotnet-apphost-pack-5.0 x86_64 5.0.2-1 packages-microsoft-com-prod 4.6 M
dotnet-host x86_64 5.0.2-1 packages-microsoft-com-prod 64 k
dotnet-hostfxr-5.0 x86_64 5.0.2-1 packages-microsoft-com-prod 170 k
dotnet-runtime-5.0 x86_64 5.0.2-1 packages-microsoft-com-prod 29 M
dotnet-runtime-deps-5.0 x86_64 5.0.2-1 packages-microsoft-com-prod 2.8 k
dotnet-targeting-pack-5.0 x86_64 5.0.0-1 packages-microsoft-com-prod 3.1 M
libicu x86_64 50.2-4.el7_7 base 6.9 M
netstandard-targeting-pack-2.1 x86_64 2.1.0-1 packages-microsoft-com-prod 2.1 M

Transaction Summary
=============================================================================================================================================================================================================================================
Install 1 Package (+10 Dependent packages)

Total download size: 136 M
Installed size: 393 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/packages-microsoft-com-prod/packages/aspnetcore-targeting-pack-5.0.0.rpm: Header V4 RSA/SHA256 Signature, key ID be1229cf: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA
Public key for aspnetcore-targeting-pack-5.0.0.rpm is not installed
(1/11): aspnetcore-targeting-pack-5.0.0.rpm | 2.1 MB 00:00:00
(2/11): aspnetcore-runtime-5.0.2-x64.rpm | 8.0 MB 00:00:00
(3/11): dotnet-host-5.0.2-x64.rpm | 64 kB 00:00:00
(4/11): dotnet-hostfxr-5.0.2-x64.rpm | 170 kB 00:00:00
(5/11): dotnet-apphost-pack-5.0.2-x64.rpm | 4.6 MB 00:00:00
(6/11): dotnet-runtime-deps-5.0.2-centos.7-x64.rpm | 2.8 kB 00:00:00
(7/11): dotnet-runtime-5.0.2-x64.rpm | 29 MB 00:00:05
(8/11): libicu-50.2-4.el7_7.x86_64.rpm | 6.9 MB 00:00:00
(9/11): dotnet-targeting-pack-5.0.0-x64.rpm | 3.1 MB 00:00:00
(10/11): netstandard-targeting-pack-2.1.0-x64.rpm | 2.1 MB 00:00:00
(11/11): dotnet-sdk-5.0.102-x64.rpm | 80 MB 00:00:10
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 11 MB/s | 136 MB 00:00:11
Retrieving key from https://packages.microsoft.com/keys/microsoft.asc
Importing GPG key 0xBE1229CF:
Userid : "Microsoft (Release signing) <gpgsecurity@microsoft.com>"
Fingerprint: bc52 8686 b50d 79e3 39d3 721c eb3e 94ad be12 29cf
From : https://packages.microsoft.com/keys/microsoft.asc
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : dotnet-targeting-pack-5.0-5.0.0-1.x86_64 1/11
Installing : aspnetcore-targeting-pack-5.0-5.0.0-1.x86_64 2/11
Installing : dotnet-host-5.0.2-1.x86_64 3/11
Installing : dotnet-hostfxr-5.0-5.0.2-1.x86_64 4/11
Installing : libicu-50.2-4.el7_7.x86_64 5/11
Installing : dotnet-runtime-deps-5.0-5.0.2-1.x86_64 6/11
Installing : dotnet-runtime-5.0-5.0.2-1.x86_64 7/11
Installing : aspnetcore-runtime-5.0-5.0.2-1.x86_64 8/11
Installing : dotnet-apphost-pack-5.0-5.0.2-1.x86_64 9/11
Installing : netstandard-targeting-pack-2.1-2.1.0-1.x86_64 10/11
Installing : dotnet-sdk-5.0-5.0.102-1.x86_64 11/11
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Welcome to .NET!
---------------------
Learn more about .NET: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

Configuring...
--------------
A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.
Verifying : dotnet-runtime-deps-5.0-5.0.2-1.x86_64 1/11
Verifying : dotnet-hostfxr-5.0-5.0.2-1.x86_64 2/11
Verifying : aspnetcore-targeting-pack-5.0-5.0.0-1.x86_64 3/11
Verifying : netstandard-targeting-pack-2.1-2.1.0-1.x86_64 4/11
Verifying : dotnet-targeting-pack-5.0-5.0.0-1.x86_64 5/11
Verifying : aspnetcore-runtime-5.0-5.0.2-1.x86_64 6/11
Verifying : dotnet-apphost-pack-5.0-5.0.2-1.x86_64 7/11
Verifying : libicu-50.2-4.el7_7.x86_64 8/11
Verifying : dotnet-host-5.0.2-1.x86_64 9/11
Verifying : dotnet-runtime-5.0-5.0.2-1.x86_64 10/11
Verifying : dotnet-sdk-5.0-5.0.102-1.x86_64 11/11

Installed:
dotnet-sdk-5.0.x86_64 0:5.0.102-1

Dependency Installed:
aspnetcore-runtime-5.0.x86_64 0:5.0.2-1 aspnetcore-targeting-pack-5.0.x86_64 0:5.0.0-1 dotnet-apphost-pack-5.0.x86_64 0:5.0.2-1 dotnet-host.x86_64 0:5.0.2-1 dotnet-hostfxr-5.0.x86_64 0:5.0.2-1
dotnet-runtime-5.0.x86_64 0:5.0.2-1 dotnet-runtime-deps-5.0.x86_64 0:5.0.2-1 dotnet-targeting-pack-5.0.x86_64 0:5.0.0-1 libicu.x86_64 0:50.2-4.el7_7 netstandard-targeting-pack-2.1.x86_64 0:2.1.0-1

Complete!

[root@vmcentos7 ~]# dotnet --version
5.0.102

免责声明:文章转载自《centos7安装.net5.0(core)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇linux运维、架构之路-Flink集群部署有关于java中List.add方法进行添加元素,发生覆盖的问题下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

简单的重力模拟:在Processing中做一个弹跳的球

效果演示: Processing 代码: // simple emulation of gravity float x; float y; // y(t) float speed = 0; float g = 0.1; // gravity void setup(){ size(640, 480); x = width/2; y...

docker run hangs问题排查记录

1、故障描述   这两天遇到一个非常诡异的问题,现在将完整的故障描述如下: 1)最初是同事跟我反馈k8s集群中有个worker node状态变为NoReady,该node的kubelet的error日志中发现大量这种日志 E0603 01:50:51.455117 76268 remote_runtime.go:332] ExecSync 1f0e3a...

CSE(Corrupted State Exceptions) 严重异常处理办法

原因分析 出现这个问题说明.NET版本至少是4.0,因为微软在.NET 4.0版本中更改了异常处理机制。微软认为catch(Exception)这种写法是不负责任的,程序员应该按照异常严重类别决定程序是否继续执行。然而事实是catch(Exception)遍地开花,程序出现异常后继续顽强地执行,然后内存报错,系统报错,蓝屏,用户来一句"破系统"。现在微软不...

ArcMap运行时出现Runtime Error错误的解决方案

运行ArcMap时弹出错误提示:“Microsoft Visual C++ Runtime Library. Runtime 1、开始-》运行-》regsvr32 "C:Program FilesCommon FilesMicrosoft SharedDAOdao360.dll" 2、如果问题仍没有解决,将下面代码复制到文本编辑器中,并保存为Registe...

记录ASP.NET CORE 3 部署过程

    环境为:window server 2008 IIS6.1  net core 3     首先时安装net.core 运行时。地址为:https://dotnet.microsoft.com/download/dotnet-core/3.0   大家找对应的版本进行下载安装。     IIS中创建网站,配置应用程序池.NET FrameWork...

LINUX进程组调度机制分析【转】

转自:https://oenhan.com/task-group-sched 又碰到一个神奇的进程调度问题,在系统重启过程中,发现系统挂住了,过了30s后才重新复位,真正系统复位的原因是硬件看门狗重启的系统,而非原来正常的reboot流程。硬件狗记录的复位时间,将不喂狗的时间向前推30s分析串口记录日志,当时的日志就打印了一句话:“sched: RT th...