https://www.microsoft.com/net/core#linuxcentos
Install for CentOS 7.1 (64 bit) & Oracle Linux 7.1 (64 bit)
- 1Install .NET Core SDKBefore you start, please remove any previous versions of .NET Core from your system.In order to install .NET Core 1.1 on CentOS or Oracle Linux, first you need to get the prerequisites and then you download the .NET Core SDK binaries, extract them onto your system and put
dotnet
onto your PATH.For other releases you can check the Linux downloads section.
- sudo yum install libunwind libicu
- curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?linkid=848821
- sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
- sudo ln -s /opt/dotnet/dotnet /usr/local/bin
- 2Initialize some codeLet's initialize a sample Hello World application!
- dotnet new console -o hwapp
- cd hwapp
- 3Run the appThe first command will restore the packages specified in the project file, and the second command will run the actual sample:
- dotnet restore
- dotnet run