How to install .NET on Raspberry Pi: Difference between revisions
From OPC Labs Knowledge Base
No edit summary |
|||
Line 1: | Line 1: | ||
[[Category:How to]] | |||
= Raspberry Pi OS = | = Raspberry Pi OS = | ||
Raspberry Pi OS (formerly Raspbian) is based on Debian. | Raspberry Pi OS (formerly Raspbian) is based on Debian. |
Revision as of 18:39, 26 January 2021
Raspberry Pi OS
Raspberry Pi OS (formerly Raspbian) is based on Debian.
.NET Core 2.1
Using procedure from Install the .NET SDK or the .NET Runtime manually -> Manual Install:
- Start Web browser.
- In the Web browser:
- Visit page Download .NET Core 2.1.
- Click on the download that you need (look under OS: Linux, Binaries: Arm32).
- 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 Runtime 2.1.24 is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
- Start Bash.
- In Bash:
- Using the URL from the clipboard, do
wget https://download.visualstudio.microsoft.com/download/pr/e4b1196b-46a7-48c7-81d3-24ac8e385c74/ecf03a67221e8aba56dfb5702faad8a9/dotnet-runtime-2.1.24-linux-arm.tar.gz
- Using just the file name portion of the URL from the clipboard, do
mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-2.1.24-linux-arm.tar.gz -C "$HOME/dotnet"
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
- Using the URL from the clipboard, do
.NET Core 3.1
Using procedure from Install the .NET SDK or the .NET Runtime manually -> Manual Install:
- Start Web browser.
- In the Web browser:
- Visit page Download .NET Core 3.1.
- Click on the download that you need (look under OS: Linux, Binaries: Arm32).
- 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 Runtime 3.1.11 is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
- Start Bash.
- In Bash:
- 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
- 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"
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
- Using the URL from the clipboard, do