Guest Demitrius Nelon Posted October 24, 2021 Posted October 24, 2021 I’m excited to share some great news. We’re releasing Windows Package Manager 1.1. We’ve squashed some annoying bugs and added some highly anticipated features. The Windows Package Manager is being released to Windows 10 (build 1809 and newer) and Windows 11 as an automatic update via the Microsoft Store. The moment we’ve been waiting for has finally arrived. Grab yourself a cup of coffee (or any other favorite beverage). Don’t worry; I’ll wait. Cheers! [HEADING=1]Client[/HEADING] The team has been busy over the last few months making improvements and adding new features. The most notable new feature is access to apps in the Microsoft Store. The client now ships with two sources configured. One of them is the Windows Package Manager app repository, and the other is the Microsoft Store. All Windows Package Manager commands and features have been documented at Microsoft Docs. I also covered most of the basics in the Windows Package Manager 1.0 announcement. [HEADING=1]How do I get it?[/HEADING] You might already have it from an automatic update via the Microsoft Store. Launch your favorite terminal (I prefer Windows Terminal ) and run winget. If you see the help menu , you’re ready to go (that’s the image above). You can also confirm the version in the first line of output from the help menu (Windows Package Manager v1.1.12653 on Windows 10 or v1.1.12663 on Windows 11). If not, the Windows Package Manager is distributed with the App Installer from the Microsoft Store. You can also download and install the Windows Package Manager from our GitHub release, or just directly install the latest available released version. If you want to continue receiving development builds, we will continue to publish those to Windows Insiders Dev Channel builds and Windows Package Manager Insiders. Instructions are available at GitHub describing your options for installing the Windows Package Manager and signing up for our insider program. [HEADING=1]Windows Package Manager App Repository[/HEADING] More than 2,600 packages are available in the Windows Package Manager app repository. Just run [iCODE]winget search <SomePackage>[/iCODE] to see if the package you are looking for has already been submitted. You might see what you’re looking for in the new Microsoft Store source as well (customization tips below). If you don’t see what you’re looking for, feel free to submit it. I suggest using the Windows Package Manager Manifest Creator. [HEADING=1]Windows Package Manager Manifest Creator Preview[/HEADING] If you are a software publisher or an ISV, you might want to skip this part and get registered so you will be able to submit your application to the Microsoft Store. If you want to add an application to the Windows Package Manager app repository, you’re going to want to [iCODE]winget install wingetcreate[/iCODE]. The tool is currently in preview and details can be found at the Windows Package Manager Manifest Creator GitHub repository. [HEADING=1]Private App Repositories[/HEADING] We announced support for private app repositories with the Windows Package Manager 1.0 release. We have continued to extend capabilities like establishing a source agreement users must accept to use your source and supporting an arbitrary value the client can pass to a server so you can build custom behaviors. [HEADING=1]Customization Tips[/HEADING] We built the Windows Package Manager with developers in mind. Several customizations are possible from configuring your progress bar to working with multiple sources. Just run [iCODE]winget settings[/iCODE] and you will be able to customize the experience to match your preferences or requirements. Everything you need to know for settings is well documented. Working with multiple sources is another area you may want to customize. If you want to narrow results down to a specific source, just pass the [iCODE]--source[/iCODE] or [iCODE]-s[/iCODE] parameter and specify what you want. For example, you might want to see if Visual Studio Code is in the store by running [iCODE]winget search “Visual Studio Code” -s msstore[/iCODE]. This search is using the name for a package. Or you might want to get the latest insider build from the Windows Package Manager app repository by running [iCODE]winget install vscode-insiders -s winget[/iCODE]. This install command is using the moniker for the Visual Studio Code Insider package. One note to call out here is we don’t have monikers for packages in the Microsoft Store. In the next example, you will see search results spanning across multiple sources, and using the “Id” from the entry in the Microsoft Store source to install Visual Studio Code. Note the agreement can be accepted via the command line using [iCODE]--accept-package-agreements[/iCODE]. Our default behavior is to search across all configured sources. If you want to remove a source, use an administrative prompt and run [iCODE]winget source remove <source>[/iCODE]. If you want the default sources added back, use an administrative prompt and run [iCODE]winget source reset --force[/iCODE]. When more than one source has a strong match, you will be asked to disambiguate the results. The image below shows what would happen in this case. [HEADING=1]IT Professionals[/HEADING] As an enterprise administrator you may want to manage Windows Package Manager using Group Policy. I’ve written an article to help you. Your users are also able to see any configured policies using [iCODE]winget --info[/iCODE]. [HEADING=1]Open Source[/HEADING] We’ve been developing the Windows Package Manager, the Windows Package Manager app repository, the Windows Package Manager Manifest Creator, and the reference implementation for private repositories at GitHub. Feel free to submit feature requests and bugs via GitHub Issues. If you have questions, feel free to start a GitHub Discussion. We look forward to your feedback. [HEADING=2]References[/HEADING] GitHub - microsoft/winget-cli: Windows Package Manager CLI (aka winget) GitHub - microsoft/winget-pkgs: The Microsoft community Windows Package Manager manifest repository GitHub - microsoft/winget-create: The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate) GitHub - microsoft/winget-cli-restsource: This project aims to provide a reference implementation for creating a REST based package source for the winget client. Windows Package Manager The post Windows Package Manager 1.1 appeared first on Windows Command Line. Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.