Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install .NET Core through Chocolatey package Manager

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article focuses on "how to install .NET Core through the Chocolatey package manager", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install .NET Core through the Chocolatey package manager.

In the world of Linux, software with yum/apt-get 90% can be installed and managed through it. But on Windows systems, installing software is still a lot of work. For example, if I want to install a Chrome browser, I have to open the IE browser first. I still can't open the official website of Chrome. I have to Baidu. Inexperienced brothers will also be fooled by those advertising links to cheat aunts. With the beauty of a guard or a housekeeper, you are blessed to be uniformly managed and installed. Of course, there is now a Chocolatey on Windows that specializes in package management. Today we will demonstrate how to install the latest version of the .NET Core through Chocolatey.

1. Installation

The installation of Chocolatey is extremely simple, and there is a command in the most striking part of the Chocolatey.org. Copy it to the command line and run it, and the installation will be complete in a minute or so. Run the command line with administrator privileges and type under the command

@ "% SystemRoot%\ System32\ WindowsPowerShell\ v1.0\ powershell.exe"-NoProfile-InputFormat None-ExecutionPolicy Bypass-Command "iex ((New-Object System.Net.WebClient) .DownloadString ('https://chocolatey.org/install.ps1'))" & & SET" PATH=%PATH%;%ALLUSERSPROFILE%\ chocolatey\ bin "can verify the success of the installation.

C:\ WINDOWS\ system32 > chocolatey-help

This is a listing of all of the different things you can pass to choco.

Here we can see that the command line of chocllatey is choco:

two。 First experience

By default, Chocolatey installs itself in the C:\ ProgramData\ chocolatey directory. There are also three main subdirectories under this directory, which serve the purpose of

Bin-Chocolatey's own commands, and some software installed through Chocolatey add a * .bat shortcut to bin.

Logs- Chocolatey runtime programs and various log.

Lib-packages downloaded during installation.

After the installation is complete, you can use the choco command to install the software on the command line, which is as convenient as apt-get or npm. It's time to try the power of Chocolatey and type [https://chocolatey.org/packages/dotnetcore/] on the command line.

Choco upgrade dotnetcore

You can install dotnet core automatically.

If you don't know how to install the required software, you can search the packages page first, and then follow the prompts to install it on the command line.

3. Install your own package

The Chocoletay package is a NuGet package that satisfies a specific directory structure. NuGet is another fascinating tool on Windows. It is a specific package format, similar to .deb. Rpm, and it also has versioned package management capabilities. Unlike Chocolatey, NuGet focuses on packages used by developers, while Chocoletay focuses more on packages available to end users. Since the Chocolatey package is the NuGet package, it doesn't matter if you don't install NuGet. Chocolatey contains a binary execution file of NuGet. You can use the command choco pack. For more information, please see https://chocolatey.org/docs/create-packages.

At this point, I believe you have a deeper understanding of "how to install .NET Core through the Chocolatey package manager". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report