Microsoft announced and open-sourced winget, a package manager for Windows.
When entering winget source
(after installing it), it can be seen that it supports adding sources.
winget source
provides the following subcommands:
add Add a new source
list list current sources
update updates current sources
remove removes current sources
reset resets sources
By entering winget source list
, the default source is displayed (as long as the sources were not changed):
C:\Windows\System32>winget source list
Name Arg
-----------------------------------------
winget https://winget.azureedge.net/cache
As sources can be added using winget source add
, how can source repositories be created?
How does a repository has to be structured or is there just not enough documentation to answer this question?
I think this question is on-topic for Stack Overflow as the main reason to add sources is (in my point of view) to create alpha/beta channels for programs or similar.
WinGet 1.0 has just been released, and Microsoft has also released a reference implementation of the REST API source so it’s possible to host your own private repository. It's called WinGet.RestSource and can be cloned from here; because it’s an Azure solution, next to Visual Studio 2019 you also need an Azure subscription.
I found that getting WinGet.RestSource up and running and pushing packages to it (currently) isn't that easy, but for anyone who's interested, I've written 2 blog posts about this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With