To be able to access to Ithe internet to update the system trogth proxy use:
Option 1. Add to /etc/yum.conf these lines:
proxy=http://<Proxy-Server-IP-Address>:<Proxy_Port> proxy_username=<Proxy-User-Name> proxy_password=<Proxy-Password>
Option 2: Export the variables in the shell:
export http_proxy=http://{Proxy-User-Name}:{Proxy-Password}@<Proxy-Server-IP-Address>:<Proxy-Port> export https_proxy= http://{Proxy-User-Name}:{Proxy-Password}@<Proxy-Server-IP-Address>:<Proxy-Port> export ftp_proxy= http://{Proxy-User-Name}:{Proxy-Password}@<Proxy-Server-IP-Address>:<Proxy-Port> export no_proxy=127.0.0.1,localhost
Example
[root@vpn-aurlen ~]# [root@vpn-aurlen ~]# export http_proxy=http://192.168.123.15:8080 [root@vpn-aurlen ~]# export https_proxy=http://192.168.123.15:8080 [root@vpn-aurlen ~]# export ftp_proxy=http://192.168.123.15:8080 [root@vpn-aurlen ~]# export no_proxy=127.0.0.1,localhost [root@vpn-aurlen ~]# [root@vpn-aurlen ~]# yum update Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * AL-Server: mirror1.alcancelibre.org * base: centos.mirror.lstn.net * epel: archive.linux.duke.edu * extras: centos-distro.1gservers.com * updates: distro.ibiblio.org Resolving Dependencies --> Running transaction check ---> Package NetworkManager.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 will be obsoleted ---> Package NetworkManager.x86_64 1:1.12.0-8.el7_6 will be obsoleting ---> Package NetworkManager-libnm.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 will be updated ---> Package NetworkManager-libnm.x86_64 1:1.12.0-8.el7_6 will be an update