Jump to content
Microsoft Windows Bulletin Board

Windows Package Manager 1.0


Recommended Posts

Guest Demitrius Nelon
Posted

We started a journey to build a native package manager for Windows 10 when we announced the Windows Package Manager preview at Microsoft Build 2020. We released the project on GitHub as an open-source collaborative effort and the community engagement has been wonderful to experience! Here we are today at Microsoft Build 2021…

 

We are excited to announce the release of Windows Package Manager 1.0!

 

[HEADING=1]Windows Package Manager 1.0[/HEADING]

[HEADING=2]Client[/HEADING]

 

The winget client is the main tool you will use to manage packages on your machine. The image below displays [iCODE]winget[/iCODE] executed in Windows Terminal via PowerShell. You can see the list of available commands used to manage packages and work with manifests. You can search for a package (search looks at the name, moniker, and tags) using [iCODE]winget search vscode[/iCODE]. Installing something on your machine is as easy as [iCODE]winget install PowerToys[/iCODE]. You can check for upgrades to packages with [iCODE]winget upgrade[/iCODE] or you can just upgrade everything with [iCODE]winget upgrade --all[/iCODE]. Are you setting up a new machine? Be sure to [iCODE]winget export packages.json[/iCODE] on your current machine (and copy the file to your new machine) so you can [iCODE]winget import packages.json[/iCODE] on the new machine. With [iCODE]winget list[/iCODE] you can see everything installed in Add / Remove Programs, and you can [iCODE]winget uninstall <SomePackage>[/iCODE] to remove it from your system. You can learn more about the commands and syntax from our documentation.

 

winget.thumb.gif.62c2283ccd32595285bddcc3d8697370.gif

 

[HEADING=3]How do I get it?[/HEADING]

 

If you are running on any current Windows Insider build or you have signed up for the Windows Package Manager Insider group you may already have it. 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 releases page or just directly install the latest available version.

 

-screenshot-of-a-cell-phone-description-automati-1.thumb.png.d383df224b5c792be10b87236aaf7527.png

 

Version 1.0 of Windows Package Manager will soon ship as an automatic update via the Microsoft Store for all devices running Windows 10, version 1809 and later. If you are an IT Professional, we have published information regarding Managing the Windows Package Manager with Group Policy. Users will be able to determine which policies are in force by executing [iCODE]winget --info[/iCODE].

 

[HEADING=2]Microsoft Community Repository[/HEADING]

 

The community has contributed over 1,400 unique packages to the Microsoft community repository! You can [iCODE]winget search <SomePackage>[/iCODE] to see if the package is available. It still amazes us how many great pieces of software there are for Windows 10 in the repository. When the search doesn’t return any results, you can go through the process to launch Edge and search for the software installer download. Once you find it, you can add it to the community repository, so you don’t have to go through that process again. After writing dozens of manifests by hand we realized there should be a tool for that.

 

[HEADING=2]Windows Package Manager Manifest Creator Preview[/HEADING]

 

Today we are releasing another open-source tool to help with submitting packages to the Microsoft community repository. Open your favorite command-line interface and execute [iCODE]winget install wingetcreate[/iCODE] to install the Windows Package Manager Manifest Creator. Once the tool has been installed, execute [iCODE]wingetcreate new[/iCODE] provide the URL to the installer. Then the tool will download the installer, parse it to determine any of the manifest values available in the installer, and guide you through the process to generate a valid manifest. If you provide your GitHub credentials when prompted, it will even fork the repository, create a new branch, submit a pull request, and provide you the URL to track its progress. The image below displays [iCODE]wingetcreate[/iCODE] executed in Windows Terminal via PowerShell.

 

wingetcreate-1.thumb.png.89b70e3bdaa405116205948978ce925a.png

 

[HEADING=2]Private Repositories[/HEADING]

 

Last but not least, we’ve released a reference implementation for the REST API source so you can host your own private repository. This is a new type of source for the Windows Package Manager. Our default source is a “PreIndexed” Package delivered via the Microsoft Store, but you may add additional REST based sources if they properly implement the JSON based REST API schema.

 

The post Windows Package Manager 1.0 appeared first on Windows Command Line.

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...