Winget-cli: winget install -m should support URI paths also

Created on 29 May 2020  路  3Comments  路  Source: microsoft/winget-cli

Description of the new feature/enhancement

Add support for HTTP/HTTPS urls to winget install -m [path] option.

This would allow for light weight sharing of YAML files without having to create a new source and register it. This would be useful for sharing one line commands to users to install software not in yes merged in the repos. For example buddy testing.

Proposed technical implementation details (optional)

Issue-Feature

All 3 comments

I don't really see any benefit in this over pulling the file ahead of the installation, e.g.:

Invoke-WebRequest -Uri https://github.com/microsoft/winget-pkgs/raw/master/manifests/Git/Git/2.24.1.2.yaml -OutFile git.yaml
winget install -m git.yaml

I work on a team that will often run ps remote commands on a pool (thousands) of machines and anytime you have to touch the local disk it gets more complicated. Not having to figure out a temp directory, download a file and clean up the file is simpler and more reliable.

winget install -m https://github.com/microsoft/winget-pkgs/raw/master/manifests/Git/Git/2.24.1.2.yaml

^^ Is cleaner

Sorry, but we're talking about a text file that is at most a few KB in size. And you can even do:

Invoke-WebRequest -Uri https://github.com/microsoft/winget-pkgs/raw/master/manifests/Git/Git/2.24.1.2.yaml -OutFile $env:temp\git.yaml
winget install -m $env:temp\git.yaml

That uses the user's temp directory so that the file gets removed on the next cleanmgr run. I personally don't see the need for this but I'm very much interested in what other users think about the request :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

denelon picture denelon  路  4Comments

aetos382 picture aetos382  路  5Comments

denelon picture denelon  路  3Comments

jasperweiss picture jasperweiss  路  3Comments

TravisSpomer picture TravisSpomer  路  3Comments