Configure wget to use a proxy server CentOS
Configure wget to use a proxy server CentOS
If you have a proxy between you an the internet, this is a common task of making applications work well with the proxy. Here’s one of those that’s extremely useful to have configured.
Login and su to root

first you might want to check and see if there is already an environmental variable for proxy set, this would save a bit of time figuring out the syntax

If there is not an environmental variable for proxy set, to test you could temporarily set one by using the following syntax:

or the following with a username/password:

To make this change permanent, so settings are not lost on reboot, or logout, we need to edit the wget configuration file

you should find the appropriate line around 78 or 79 depending on your configuration

edit it in a way that will work with your environment

if you are required to enter a username or password, configure as follows:

if all is configured properly, you should be able to wget a package
That’s it!
Hosted Linux Servers at www.zwiegnet.com/go
