How to install DotNet 8 on Amazon Linux 2023
Hey everyone!
Hope you are safe and doing great!
For some reason AWS:
- Has broken DotNet packages (they are missed files within this directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/*) - Does not have DotNet 8 packages
So, the best practice here is to get DotNet packages from the official Microsoft repos: https://packages.microsoft.com/
In this short guide, we will go through the setup, using an Amazon Linux 2023 instance, and will install DotNet 8 on it.
Steps
1 - ssh to your EC2 Amazon Linux 2023 instance
ssh ec2-user@IPAdress2 - Add the Microsoft repo for Fedora 39
sudo curl -o /etc/yum.repos.d/packages-microsoft-com-prod.repo https://packages.microsoft.com/config/fedora/39/prod.repo3 - Install DotNet 8 from the Microsoft repo
sudo dnf --disablerepo=amazonlinux install -y dotnet-sdk-8.04 - Check the installation
dnf list installed | grep dot
dotnet --versionYou are awesome! 👍
That is it. Hope this short guide helped you and saved your time for the best.
Thank you for reading and see you soon.