Configuring yum to Use a Proxy Server

Bismillahirrahmanirrahim..

This short tutorial will show you how to configure yum to use a proxy. I’m using centOS 7 but I believed the configuration is nearly the same with our beloved CentOS 5 and 6.

open up file /etc/yum.conf

#vi /etc/yum.conf

Add below line

# The proxy server - proxy server:port number
proxy=https://skrinhitam.wordpress.com:8080
# The account details for yum connections
proxy_username=hanief
proxy_password=qwerty

save and exit.

good luck!

Advertisements
This entry was posted in Linux and tagged , , , . Bookmark the permalink.