<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ulili Nhaga on Medium]]></title>
        <description><![CDATA[Stories by Ulili Nhaga on Medium]]></description>
        <link>https://medium.com/@ulili5?source=rss-4bce1da18cae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kev4tnDyaUodq2MBh1M8ow@2x.jpeg</url>
            <title>Stories by Ulili Nhaga on Medium</title>
            <link>https://medium.com/@ulili5?source=rss-4bce1da18cae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:36:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ulili5/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quick Tips: Installing .NET 8 on Amazon Linux 2023 (AL2023)]]></title>
            <link>https://medium.com/@ulili5/quick-tips-installing-net-8-on-amazon-linux-2023-al2023-16e71d92d165?source=rss-4bce1da18cae------2</link>
            <guid isPermaLink="false">https://medium.com/p/16e71d92d165</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[net-core]]></category>
            <dc:creator><![CDATA[Ulili Nhaga]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 04:32:11 GMT</pubDate>
            <atom:updated>2023-12-14T04:32:11.810Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EF9bHYSgQy-QjWAV25adqg.png" /><figcaption>Image generated from <a href="https://mod-dotnet-bot.net/create-your-bot/">https://mod-dotnet-bot.net/create-your-bot/</a></figcaption></figure><p>If you’re running your .NET workload on the Amazon Web Services (AWS) Cloud and you’re wondering how to install <a href="https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8">.NET 8</a> on <a href="https://aws.amazon.com/ec2/">Amazon EC2</a> instances running the latest operating system, <a href="https://aws.amazon.com/linux/amazon-linux-2023/">Amazon Linux 2023 (AL2023)</a>, then you’re in the right place, I got a <strong><em>Quick Tips</em></strong> for you.</p><h4><strong><em>Quick Tips</em></strong></h4><p>Copy the following code snippet and add it to <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html">Amazon EC2 instance user data</a> or your <a href="https://docs.aws.amazon.com/imagebuilder/latest/userguide/start-build-image-pipeline.html">AMI image pipeline</a>. That’s the <strong><em>Quick Tips.</em></strong></p><pre>#!/bin/bash<br>sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc<br>sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/37/prod.repo<br>sudo dnf install -y dotnet-sdk-8.0<br>dotnet --version &gt; /tmp/dotnet-version</pre><p>The next topic is a deep dive into how to get to this Solution. Continue reading to learn about the details, but if you’re only interested in the Solution without learning how-to, please remember to click on the icon to clap and follow me for more <strong><em>Quick Tips</em></strong> like this one.</p><h4><strong>The deep dive on “how-to” get to this Solution.</strong></h4><p>The following steps are the rationale to get to this Solution:</p><p>1. AL2023, like most popular Linux distributions, derives from other Linux distributions. The first step you need to do is to discover its upstream. Run the following command.</p><pre>cat /etc/os-release</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hefh05kXT9ZBC6CGlbUm4g.png" /><figcaption>Result of command to check the Linux distribution</figcaption></figure><p>2. Previous step shows FEDORA on the field ID_LIKE, which means AL2023 is based on Fedora. Your next step is to check which Package management tool it uses. Do a quick search on the internet, and you will find it uses <a href="https://docs.aws.amazon.com/linux/al2023/ug/package-management.html">DNF, the successor to YUM.</a></p><p>3. Now, your next step is to search for how to install .NET 8 on Fedora. After another quick search, you’ll land on this link: “<a href="https://learn.microsoft.com/en-us/dotnet/core/install/linux-fedora">Install the .NET SDK or the .NET Runtime on Fedora</a>.”</p><p>4. If you run the command to install immediately, it will fail as the following print screen.</p><pre>sudo dnf install dotnet-sdk-8.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahaepWg_sXzg3km0z9J3jg.png" /><figcaption>Result showing failed install command</figcaption></figure><p>5. It fails because the built-in package repository for AL2023 does not contain the .NET package. You need to add the Microsoft package repository, which includes the .NET package you need. To add it, run the following commands.</p><pre>sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc<br>sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/37/prod.repo</pre><p>6. Now, you’re all set! Run the following command to install.</p><pre>sudo dnf install -y dotnet-sdk-8.0</pre><p>7. To verify the installation, run the following command.</p><pre>dotnet --version &gt; /tmp/dotnet-version</pre><h4>Conclusion</h4><p>In this Quick Tips post, I’ve demonstrated how you can install .NET 8 in Amazon Linux 2023 and provided deep-dive details on how to get to the Solution. You can use this Solution to launch your EC2 instance with .NET 8 or build AMI with .NET 8 to take advantage of the latest and greatest of both .NET and Amazon Linux 2023.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16e71d92d165" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>