.NET Core 7 Ubuntu-Based Installation – Step-by-step

June 9, 2023 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading .NET Installer

    Download .NET Installation Script for Ubuntu GNU/Linux

    .NET .sh for Ubuntu
  2. 3. Installing .NET Core

    Then to Install .NET Core 7 in Ubuntu
    First, give Execution Permission with:

    chmod +x ./dotnet-install.sh

    For the SDK LTS release simply run:

    ./dotnet-install.sh

    Instead for the Current one play:

    ./dotnet-install.sh -c Current

    Again for a Specific release as for Instance 7.0:

    ./dotnet-install.sh -c 7.0

    And instead for ASP.NET Core Runtime (Already included in the SDK):

    ./dotnet-install.sh -c Current --runtime aspnetcore

    For more information see: Dotnet-install Script Reference.

    Terminal output
  3. 4. Amending User’s Path

    Again Append Dotnet into the Path (Optional)
    This is strictly needed only to Work with Dotnet from Command Line…

    echo 'export PATH=$PATH:/home/`whoami`/.dotnet' >> ~/.bashrc

    Finally, Reload the Bash User’s Path simply with:

    bash

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress