How to add proxy to Yum (Fedora)

If you’re behind a proxy and have no way to set system-wide proxy settings (think LXDE), you can always edit the yum.conf file, located in /etc.

gksu /etc/yum.conf

Add this line to the second line from the top

proxy=http://your_proxy:port

and save.