Using Package Installers behind company firewall
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!