From owner-freebsd-questions@freebsd.org Wed Mar 17 10:22:54 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 995025A8BCA for ; Wed, 17 Mar 2021 10:22:54 +0000 (UTC) (envelope-from gpiero@rm-rf.it) Received: from serafino.rm-rf.it (serafino.rm-rf.it [192.165.67.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F0mSY2TPSz3DsV for ; Wed, 17 Mar 2021 10:22:52 +0000 (UTC) (envelope-from gpiero@rm-rf.it) Received: from valentina.fdc.rm-rf.it (valentina.fdc.rm-rf.it [192.168.192.1]) by serafino.fdc.rm-rf.it (OpenSMTPD) with ESMTP id 33edbaec for ; Wed, 17 Mar 2021 11:22:44 +0100 (CET) Received: from robinhood.fdc.rm-rf.it (robinhood.fdc.rm-rf.it [192.168.192.50]) by valentina.fdc.rm-rf.it (Postfix) with ESMTP id 75CDB1F6CE for ; Wed, 17 Mar 2021 11:22:43 +0100 (CET) Received: by robinhood.fdc.rm-rf.it (Postfix, from userid 1000) id 41B99601F2F; Wed, 17 Mar 2021 11:22:43 +0100 (CET) Date: Wed, 17 Mar 2021 11:22:43 +0100 From: Gian Piero Carrubba To: freebsd-questions@freebsd.org Subject: How to override pkgng's proxy configuration settings Message-ID: <20210317102243.2a2vb5hftkebqj54@robinhood.fdc.rm-rf.it> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline X-Rspamd-Queue-Id: 4F0mSY2TPSz3DsV X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of gpiero@rm-rf.it designates 192.165.67.94 as permitted sender) smtp.mailfrom=gpiero@rm-rf.it X-Spamd-Result: default: False [-1.30 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[192.165.67.94:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:192.165.67.94]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[192.165.67.94:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[rm-rf.it]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:34971, ipnet:192.165.67.0/24, country:IT]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2021 10:22:54 -0000 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.