Search code examples
.netlinux.net-coreofflinerhel

How can I offline install .NET Core and SDK on Linux (RHEL)?


I have to install .NET Core 2.0 and SDK on a Linux machine (Red Hat Linux (RHEL) distribution) server, where there isn't any Internet connectivity. How can I do it?


Solution

  • I extracted the .NET Core 2.2 package into a directory, /dotnet, on Linux openSUSE 42.1.

    Then in a terminal:

    sudo ln -sf "/dotnet" "usr/bin/dotnet"
    
    export PATH=/usr/bin/dotnet:$netcorepkgs`
    

    Then in the terminal, the dotnet command works:

    dotnet --version
    

    Output:

    2.2.104