Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set proxy in yum.conf

Tags:

linux

fedora

yum

I am wondering, how to set proxy in yum.conf file - I specified the proxy in yum.conf file

proxy=http://username:[email protected]:80

Is this correct way ?

If yes , still I am getting the error at "yum update"

[root@localhost ~]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/i386/os/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found :             http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/i386/os/repodata/repomd.xml
Trying other mirror.
Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors    to try.
http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/i386/os/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/i386/os/repodata/repomd.xml

I tried with setting proxy on bash also, still getting the same error.

export http_proxy="http://username:[email protected]:80"
export https_proxy="http://username:[email protected]:80"

Please help.

Thanks in advance.

like image 797
user2798118 Avatar asked Sep 13 '25 11:09

user2798118


1 Answers

How I have it and it works

in /etc/yum.conf

proxy=http://proxy_host:proxy_port
proxy_username=proxy_username
proxy_password=proxy_password
like image 146
Viva Avatar answered Sep 16 '25 03:09

Viva