The configuration file for yum
and related utilities is located at /etc/yum.conf
:
/etc/yum.conf
if your organization uses a proxy server as an intermediary for Internet access, specify the proxy
setting in /etc/yum.conf
as shown in the following example.
proxy=http://proxysvr.yourdom.com:3128
However, it is recommended to define individual repositories in new or existing .repo
files in the /etc/yum.repos.d/
directory, ex:
cat rhel7-server.repo
[rhel7-server]
name=RHEL 7 Server RPMs
baseurl=http://xxx.net/repository/mirror-rpm/20160114/rhel-7-server-rpms
enabled=1
gpgcheck=0
priority=1
skip_if_unavailable=1