Installing Dotnet 6 on PopOS

29 Aug 2022

← Home
1 min. read

Based on: Installing .NET 6 on Ubuntu 22.04 (Jammy)

Using Jammy feed

sudo apt update && sudo apt -y install dotnet6

Use .NET 6 Package via PMC

The above didn’t work for me for some reason :/

wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

Configure apt preferences, to prioritize PMC repository:

sudo touch /etc/apt/preferences

With contents:

Package: *
Pin: origin "packages.microsoft.com"
Pin-Priority: 1001