Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 761 Bytes

File metadata and controls

56 lines (36 loc) · 761 Bytes

how to install Dotnet SDK on Fedora using dotnet_install.sh

cuz I always forget how to.

Dependencies

  • curl

How to do it

1. Download the bash script.

curl -fsSL https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh

2. Make script executable.

chmod +x dotnet-install.sh

3. Run the script

./dotnet-install.sh --version {version_here}

Dotnet should install to ~/.dotnet directory.

4. Add Dotnet to PATH

Open the config file:

nano ~/.bashrc

Add these lines to the end of it:

export DOTNET_ROOT="$HOME/.dotnet"
export PATH="$HOME/.dotnet:$PATH"

5. Verify if you have installed it correctly.

dotnet --version

it should result in:

{version_here}