Skip to content

Instantly share code, notes, and snippets.

@anairinac
Created November 12, 2021 03:16
Show Gist options
  • Save anairinac/87e8999388b0263805575f04a6e242ce to your computer and use it in GitHub Desktop.
Save anairinac/87e8999388b0263805575f04a6e242ce to your computer and use it in GitHub Desktop.
Steps to install Dot NET Core on OpenSuse 15

Install C# .NET Core on OpenSuse 15

  1. Install the intial library (make sure you type your sudo password properly):
sudo zypper install libicu
  1. Add the Microsoft repo to contact for the .NET core packages:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
wget https://packages.microsoft.com/config/opensuse/15/prod.repo
sudo mv prod.repo /etc/zypp/repos.d/microsoft-prod.repo
sudo chown root:root /etc/zypp/repos.d/microsoft-prod.repo
  1. Install the SDK:
sudo zypper install dotnet-sdk-6.0
  1. Install the ASP.NET Core runtime:
sudo zypper install aspnetcore-runtime-6.0
  1. Install the .NET runtime:
sudo zypper install dotnet-runtime-6.0
  1. Verify the install went as expected, you should see the following:
> dotnet --list-sdks
6.0.100 [/usr/share/dotnet/sdk]
> dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment