How to override pkgng's proxy configuration settings

Gian Piero Carrubba gpiero at rm-rf.it
Wed Mar 17 10:22:54 UTC 2021


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.


More information about the freebsd-questions mailing list