MacOS – Using Package Installers behind company firewall

firewallmacospackage-managementPROXYterminal

Is there a more efficient way to use package installers behind a firewall than adjusting the proxy settings for each installer?

As of now, I'm using Ruby Gems, Bower, and NPM and it's a pain to reset everything individually when my password changes or there's an update to our settings.

I'm looking for a more centralized solution.

Best Answer

The common answer is to setup a local proxy like squidman or cntlm, so your login/pass credentials are only stored in one place - and all of your CLI tools point at a local proxy:port.

You can also go to your network people (who think all your broken developer tools are a personal problem, not theirs) and point out that you're forced to hardcode your login and password (GASP!) not only all over your machine, your virtual machines, and even AWS instances...

And then it VERY MUCH becomes their problem. Auth proxies are so nineties!