Difference between revisions of "How to install .NET on Raspberry Pi"

From OPC Labs Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:
 
# Start Bash.
 
# Start Bash.
 
# In Bash:  
 
# In Bash:  
## <code>wget https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz</code>
+
## Using the URL from the clipboard, do <code>wget https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz</code>
## <code>mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-3.1.11-linux-arm.tar.gz -C "$HOME/dotnet"</code>
+
## Using just the file name portion of the URL from the clipboard, do <code>mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-3.1.11-linux-arm.tar.gz -C "$HOME/dotnet"</code>
 
## <code>export DOTNET_ROOT=$HOME/dotnet</code>
 
## <code>export DOTNET_ROOT=$HOME/dotnet</code>
 
## <code>export PATH=$PATH:$HOME/dotnet</code>
 
## <code>export PATH=$PATH:$HOME/dotnet</code>

Revision as of 17:21, 26 January 2021


Raspberry Pi OS

Raspberry Pi OS (formerly Raspbian) is based on Debian.

.NET Core 3.1

Using procedure from Install the .NET SDK or the .NET Runtime manually -> Manual Install

  1. Start Web browser.
  2. In the Web browser:
    1. Visit page Download .NET Core 3.1.
    2. Click on the download that you need (look under OS: Linux, Binaries: Arm32).
    3. On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, the direct URL for .NET Core 3.1.11 URL is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
  3. Start Bash.
  4. In Bash:
    1. Using the URL from the clipboard, do wget https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz
    2. Using just the file name portion of the URL from the clipboard, do mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-3.1.11-linux-arm.tar.gz -C "$HOME/dotnet"
    3. export DOTNET_ROOT=$HOME/dotnet
    4. export PATH=$PATH:$HOME/dotnet