Learn the commands to install .Net Framework and runtime on AlmaLinux 8 using terminal and DNF package manager.
.NET is a free, cross-platform, open-source developer platform from Microsoft that can be used to create and run programs for Windows. The software is pronounced “dot-net framework”. Programmers can use .NET to develop and test their own software for Windows computers. Several programming languages ​​such as C# or C++ are supported so that as many programmers as possible can use the program to build for web, mobile, desktop, games, and IoT.
If you install a program that was created with .NET, you also need the .NET Framework. This ensures that all functions of the software work correctly on your computer.
Well, installation of Dotnet is pretty easy on Windows, however, being open-source and cross-platform it can also be installed on Linux for the development of .Net-based applications.
Contents
The steps given here will be the same for other RedHat-based Linux operating systems such as Oracle Linux, CentOS, Rocky Linux, and others…
#1st method using Dnf Package manager
As we are going to use the DNF package manager and official repositories of Almalinux 8, hence, first run the system update command:
 
The packages we need to configure Dotnet on Almalinux are available to install using its official App stream and base repositories. Hence, follow the given commands to install runtime and SDK.
For both .Net tools, runtime, and SDK:
For only .Net Runtime:
For NET Software Development Kit
The latest version while doing this article of .Net SDK was 6.0, hence to install use:
Note: For other versions, just need to change the 6.0 with that. You can check what are the available versions to install by using a command:
 
Once the installation is completed, we can check the version of installed Dotnet by using its command-line tool, here is that.
OutPut:
 
Let’s create a new console app using the command:
In the above command, MyApp is the project directory’s name that we are using to store all required files to develop an application, whereas net6.0 is the version of Dotnet we are using to create an app.
Switch to create a directory:
Create your first App using Dotnet on Almalinux
Now, there is already a demo program inside the created project directory called program.cs, to run it use the command:
You will see output- “hello-world”
dotnet run app
 
To remove Dotnet in the future if you don’t require it, use the DNF again:
Whereas for some particular SDK or runtime version
For example, if the version is 6.0 then the command will be:
For more information refer to the official documentation. 
 
Other Articles:
How to install Lighttpd on AlmaLinux 8
How to install Skype on Almalinux 8
Install PrestaShop on Almalinux 8
Command to Permanently Disable SELinux on AlmaLinux 
 
 
 
AlmaLinux

AlmaLinux, Rocky Linux

AlmaLinux, CentOS

AlmaLinux, Rocky Linux

document.getElementById( “ak_js_1” ).setAttribute( “value”, ( new Date() ).getTime() );
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Linux Shout crafted as a part of our main portal H2S Media to publish Linux related tutorials and open source Software.

source

Previous articlePawnix on 'Shark Tank': Fans slam $199 noise-canceling headset for dogs, call it 'super dumb' – MEAWW
Next articleL'iPad Pro 2022 pourrait être lancé avec la puce M2 et MagSafe – NextPit France

LEAVE A REPLY

Please enter your comment!
Please enter your name here