Skip to content

Instalace .NET na Linuxu

Roman Jašek edited this page Sep 28, 2022 · 1 revision

Pokud máte na Linuxu nainstalovanou jinou verzi .NET, tak je možné, že instalace standardní cestou vám fungovat nebude - v tom případě zkuste použít tento postup:

  1. Make working directory $ mkdir dotnet-install; cd dotnet-install
  2. Download the dotnet-install.sh script $ curl https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh > dotnet-install.sh
  3. Install dotnet 7 sdk (change install-dir to the directory where your dotnet is installed, if you installed dotnet through dnf, it should be in the same place) $ sudo bash sudo bash ./dotnet-install.sh --channel 7.0.1xx --quality preview --install-dir /usr/lib64/dotnet
  4. Verify your installation $ dotnet --list-sdks - you should see 7.0.100-rc.1.22431.12 in the list