[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