Installing .NET 5.0 on Raspberry Pi 4
1
$ sudo apt-get install lshw
2
$ sudo lshw
3
description: Computer
4
product: Raspberry Pi 4 Model B Rev 1.4
5
serial: 10000000d5e618a2
6
width: 64 bits
7
8
; OK, it's 64bits
9
; Get Arm64 download URL from https://dotnet.microsoft.com/download/dotnet/5.0
10
11
$ mkdir temp && cd temp
12
$ curl [URL] --output [FILENAME]
13
$ mkdir $HOME/dotnet
14
$ sudo tar zxf [FILENAME] -C $HOME/dotnet/
15
$ sudo ln -s $HOME/dotnet/dotnet /usr/local/bin
16
$ dotnet --version
17
5.0.203
18
; or whatever version you downloaded
19
20
; Now we need to add it to PATH. Add the exports
21
$ sudo nano ~/.bashrc
22
23
export DOTNET_ROOT=$HOME/dotnet
24
export PATH=$PATH:$HOME/dotnet
25
export PATH=$PATH:$HOME/.dotnet/tools
26
27
; then Ctrl+X to save and exit. finally, load the new exports
28
$ source ~/.bashrc
Copied!
Last modified 1mo ago
Copy link