Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 390
Kushhh Alll Avatar asked Oct 18 '25 14:10

Kushhh Alll


1 Answers

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
like image 99
unos baghaii Avatar answered Oct 21 '25 04:10

unos baghaii