Open source operating system community OpenCloudOS Initiated by Tencent and its partners , Is completely neutral 、 Comprehensive opening up 、 Safe and stable 、 High performance operating system and ecosystem .OpenCloudOS It has precipitated the advantages of many manufacturers in software and open source ecology , It inherits Tencent's advantages in operating system and kernel 10 Years of technology accumulation , In cloud native 、 stability 、 performance 、 Hardware support and other aspects have solid support , It can support all hardware platforms equally and comprehensively .
OpenCloudOS 8.5 yes OpenCloudOS The community releases the first official version , Its basic library and user state components are completely similar to CentOS 8 compatible , And through kernel level optimization and enhancement , Can be provided to users compared to CentOS 8 Better solution .
adopt .NET Documents stay Linux Install... On the distribution .NET[1], There are several installation methods , Let's try it first CentOS/RedHat Upper rpm and dnf Two ways to install , All failed :
[[email protected] ~]# dnf install dotnet-sdk-6.0
Last metadata expiration check: 1:09:49 ago on Thu 23 Jun 2022 06:49:52 AM CST.
No match for argument: dotnet-sdk-6.0
Error: Unable to find a match: dotnet-sdk-6.0
[[email protected] ~]# yum install dotnet-sdk-6.0
Last metadata expiration check: 1:12:09 ago on Thu 23 Jun 2022 06:49:52 AM CST.
No match for argument: dotnet-sdk-6.0
Error: Unable to find a match: dotnet-sdk-6.0
Snap Is a bundle of applications and their dependencies , It can be used in many different Linux Normal operation in the distribution . Snap Apply to CentOS 7.6+ and Red Hat Enterprise Linux 7.6+, It can be downloaded from Extra Packages for Enterprise Linux(EPEL) Repository installation , Reference documents :https://snapcraft.io/install/snapd/centos[2].
You can use the following command to EPEL Repository added to CentOS 8 System :
sudo dnf install epel-release
sudo dnf upgrade
take EPEL Add a repository to your CentOS After installation , Just install the captured package :
sudo yum install snapd
After installation , You need to enable the... For managing the primary snapshot communication socket systemd unit :
sudo systemctl enable --now snapd.socket
To enable classic snapshot support , Please enter the following in /var/lib/snapd/snap Create symbolic links between and /snap:
sudo ln -s /var/lib/snapd/snap /snap
Log out and log in again ,
Or restart the system to ensure that the snapshot path is updated correctly .
Then follow the documentation : adopt Snap install .NET SDK or .NET Runtime [3] Conduct .NET 6 Installation :
snap install dotnet-sdk –classic
So let's verify that :
[[email protected] ~]# dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.301
Commit: 43f9b18481
Runtime Environment:
OS Name: opencloudos
OS Version: 8.5
OS Platform: Linux
RID: linux-x64
Base Path: /var/lib/snapd/snap/dotnet-sdk/172/sdk/6.0.301/
Host (useful for support):
Version: 6.0.6
Commit: 7cca709db2
.NET SDKs installed:
6.0.301 [/var/lib/snapd/snap/dotnet-sdk/172/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.6 [/var/lib/snapd/snap/dotnet-sdk/172/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.6 [/var/lib/snapd/snap/dotnet-sdk/172/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Related links :
[1] stay Linux Install... On the distribution .NET:https://docs.microsoft.com/zh-cn/dotnet/core/install/linux
[2] stay CentOS Enable on Snap Installation package :https://snapcraft.io/install/snapd/centos
[3] adopt Snap install .NET SDK or .NET Runtime: https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-snap









