Install .Net Core 2.0 di
Centos 7
Tutorial Linux Indonesia -- .Net Core
merupakan bahasa programan
yang open source
yang di bawah
perusahaan Microsoft.
.NetCore tidak hanya berjalan
di Windows, tapi bisa
juga berjalan di sistem
operasi linux maupun
MAcOS.
![]() |
Install .Net Core 2.0 di Centos 7 |
Kita Install beberapa paket
terlebih dahulu untuk
mendukung Net Core. Menggunakan
command di bawah
ini.
[root@bagol69 ~]# yum install deltarpm unzip zlib gettext libunwind libicu libcurl-devel openssl-devel libicu-devel -y
Lakukan Import
Kunci Net Core 2.0 dari
Repository Microsoft
[root@bagol69 ~]# rpm --import https://packages.microsoft.com/keys/microsoft.asc
Menambahkan Repository
.Net Core 2.0 di server
anda.
[root@bagol69 ~]# cat > /etc/yum.repos.d/dotnetdev.repo <
[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF
Artikel Terkait
Install Monitoring Sensu di Centos 7
Install Elastic Search di Centos 7
Cara Melakukan Update Kernel Terbaru Di CentOS 7
Cara Mengatasi Relay Attempt Blocked di qmail Server
Sekarang kita Install .Net Core 2.0 menggunakan command di bawah
ini.
[root@bagol69 ~]# yum -y install dotnet-sdk-2.0.0
Pengecekan Versi
.Net Core
[root@bagol69 ~]# dotnet --version
2.0.0
Setelah itu
kita masuk ke
console .Net Core
menggunakan perintah di
bawah ini.
[root@bagol69 ~]# dotnet new console -o helloworld
Welcome to .NET Core!
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet
--help to see available commands or go to https://aka.ms
/dotnet-cli-docs.
Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience.
The data is anonymous and does not include command-line arguments. The data is
collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment
variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.
Getting ready...
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on helloworld/helloworld.csproj...
Restoring packages for /home/cent/helloworld/helloworld.csproj...
Generating MSBuild file /home/cent/helloworld/obj/helloworld.csproj.nuget.g.props.
Generating MSBuild file /home/cent/helloworld/obj/helloworld.csproj.nuget.g.targets.
Restore completed in 204.13 ms for /home/cent/helloworld/helloworld.csproj.
Restore succeeded.
Alhamdulilah sudah
selesai instalasi .Net
Core 2.0 di
Centos 7.0