微软的Windows 10软件包管理器Winget将允许用户使用Linux系统等命令行安装各种应用程序。这是有关如何使用Winget命令使用和安装程序的教程。
Winget Windows 10软件包管理器做什么?
Winget是Microsoft为其Windows 10操作系统创建的免费和开源软件包管理器,以使事情变得更加容易。如果您是Linux用户,那么您已经知道包装管理器的好处,以及仅使用一个命令安装各种应用程序的容易。因此,我认为Microsoft知道Linux是操作系统的未来,因此,在游戏中,它还必须提供更强大或类似的功能,因此,即使Linux粉丝也开始感觉到在Windows上安装应用程序的敏捷性。
因此,此Winget配备了命令行实用程序和一套用于下载和安装典型应用程序的服务。但是,目前是CLI,但迟早,它也将具有图形UI,可以轻松地在一个屋顶下找到开放式和封闭式应用程序。
您可以考虑像Winget一样。但是,巧克力巧克力也可以在Windows 7上使用。
如何获取Winget Windows软件包管理器?
要安装Windows软件包管理器,用户必须打开Windows 10 1709(16299)或以后。就是这样;如果您使用此操作系统,则无需安装任何内容;这Winget已经在您的系统上了。
但是,如果您不想将系统更新为最新版本,则可以通过下载手动安装它。appxbundle,可用Girub。
如何使用Winget安装应用程序
Winget安装在其存储库中可用的应用程序的使用相对容易,甚至比Linux更容易。只需在Windows 10上打开命令终端并输入:
winget
以上命令将给出此输出:
Windows Package Manager v0.2.2521 Preview Copyright (c) Microsoft Corporation. All rights reserved. The winget command line utility enables installing applications and other packages from the command line. usage: winget [<command>] [<options>] The following commands are available: install Installs the given package show Shows info about an package source Manage sources of packages search Find and show basic info of packages hash Helper to hash installer files validate Validates a manifest file settings Open settings features Shows the status of experimental features For more details on a specific command, pass it the help argument. [-?] The following options are available: -v,--version Display the version of the tool --info Display general info of the tool More help can be found at: https://aka.ms/winget-command-help
这意味着温列绝对工作正常。
现在,是时候使用它安装一些软件包了。要搜索使用Winget安装的任何应用程序,我们可以使用命令:
winget search app-name
例如:要安装Google Chrome浏览器,我们将运行
winget search googlechrome
下面的屏幕截图显示,它已经搜索了与我们的查询相关的可用软件包。
现在要安装它,我们使用命令:
winget install ID
这ID是Winget用来识别程序的名称。在这里,当我们在结果中搜索Chrome软件包时,您可以在上图中看到;它还给出了同样的ID。因此,要安装Chrome,该命令将是
winget install Google.Chrome
但是,您也可以使用软件包的名称安装。例如,Google Chrome可以使用命令安装。Winget install googlechrome
。但是,当有多个版本的类似软件包可用时,使用ID将是安装应用程序的更好方法。
以同样的方式,我们可以安装VLC或任何其他应用程序,以了解使用Winget安装的所有可用软件包或软件,键入:
winget install package-name
您可以了解有关该工具的更多信息官方Windows软件包管理器文档。