-x | --proxy
を使う
$ curl --proxy http://proxy.example.org:8080 http://www.example.com
$ pip --proxy=http://proxy.example.org:8080 install ansible
$ sudo rpm --httpproxy proxy.example.org --httpport 8080 -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
/etc/yum.conf
にグローバル設定を行えるが、no_proxyはないっぽい。
リポジトリによってproxyあり/なしがある場合は、/etc/yum.repo.d/hogehoge.repo
毎に設定するのがよさげ
記述内容は
proxy=http://proxy.example.org:8080