winget-cli
winget-cli copied to clipboard
Proxy options support
Description of the new feature/enhancement
Something like:
winget install git.git --proxy="http://127.0.0.1:2345"
This will make winget
download git
through the proxy server.
Possible proxy configuration options are:
- Environment variables ( e.g.
WINGET_PROXY_URL
) - Auto-detecting settings from inetcpl.cpl aka IE
- command line arguments
- config file
- registry config separate from IE. This would tie in nicely with ADMX (group policy) templates down the road
1080端口,老局域网用户了
please consider also proxy the download link inside the package , for example ,
winget install kodi --proxy http://xxx/
please also proxy the download link 'https://mirrors.kodi.tv/releases/windows/win64/kodi-18.7-Leia-x64.exe' which insided the installation package.
Possible proxy configuration options are:
- Environment variables ( e.g.
WINGET_PROXY_URL
)- Auto-detecting settings from inetcpl.cpl aka IE
- command line arguments
- config file
- registry config separate from IE. This would tie in nicely with ADMX (group policy) templates down the road
I would recommend standard variables like HTTP_PROXY or HTTPS_PROXY
When adding proxy support, please do not forget supporting proxies that require NTLM-authentication!!! In an enterprise environment where the workstations are joined to a domain, and the users use domain accounts, entering a password should not be necessary! (Windows Integrated Authentication)
Thank you!
Any plan regarding this feature?
Really need this!
Need this too!
Need it!
Surprised this wasn't a 1.0 feature.
Need it!
Need it!
Need it.
1.0 without proxy support ... lol
+1
Need it
Need this as well.
Also need for winget upgrade
Need it
Why not try set http_proxy=http://localhost:7890
and set https_proxy=http://localhost:7890
?
@d0zingcat because its not socks5.
@d0zingcat because its not socks5.
Maybe you could use Privoxy(windows)/polipo(macOS) to parse socks5 to http?
Really need it, especially for people having trouble connect to the default registry.
not that its an equivalent but even spotify can run over socks5. it would be nice to run winget through tor like all my other package managers to curb targeted injection attacks.
Need it!
Absly need it.
15k stars and no proxy support? I thought this was a joke. This is bloody needed
This feature is so important that many users want it! Can't wait for it.
I'm current using a proxy application (CFW) on my own device. I really want winget.exe
can automatically detect system proxy settings, so I can only change the proxy state of CFW for managing almost every other applications on the device.
@Dragon1573 Actually winget
can detect system proxy at current. You just need to disable the Delivery Optimization service by setting network.downloader
to wininet
.
P.S. The documentation says that Delivery Optimization will make use of the system proxy, however it's not working on my machine. So you're better off disabling it.
@eternalphane That's nice! I'm currently using wininet
as the network.downloader
. Now I switch my network topology, from using a localhost
proxy with CFW to using a LAN proxy with CFA (Clash for Android). I launch the CFA on my phone and provide WIFI connection and proxy service for the laptop. I'm using that proxy as a system proxy and everything works fine.
Thank you!
CFW provide Service Mode
and TUN Mode
for users, winget.exe
will rarely encounter a network error with TUN Mode
enabled. Maybe disable this mode is better ...
Need it!