Date: Wed, 17 Mar 2021 11:22:43 +0100 From: Gian Piero Carrubba <gpiero@rm-rf.it> To: freebsd-questions@freebsd.org Subject: How to override pkgng's proxy configuration settings Message-ID: <20210317102243.2a2vb5hftkebqj54@robinhood.fdc.rm-rf.it>
next in thread | raw e-mail | index | archive | help
Hi all, I'm on 12.2-RELEASE-p4 and pkg-1.16.3. As long as I use a stock /usr/local/etc/pkg.conf I can set an http proxy on the command line using '-o': # pkg -o http_proxy=myproxy:9999 update As soon as I modify pkg.conf for including the lines pkg_env: { http_proxy: "http://myproxy:9999" } I cannot override the setting anymore. # pkg -o http_proxy=myotherproxy:8008 update # pkg -o http_proxy= update #this is the case I'm mostly interested on and any other variations I've tried always result in fetch using the http_proxy setting from my pkg.conf. Any suggestion? thanks, Gian Piero.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210317102243.2a2vb5hftkebqj54>