How to use wget through a proxy connection

This tutorial is for using Linux wget using a proxy connection.


1. Change wgetrc file. Try changing this file using your favourite text editor. I am using nano editor:

sudo nano /etc/wgetrc

2. Search http_proxy tag in the file.


erase “#” sign and change http_proxy= with your proxy URL and proxy port, example:


3. Search use_proxy tag and erase “#” sign.

4. Save file. You can download now with the command normally:


Just make sure to save a backup copy of your wgetrc file in case you want to revert to the original configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.