This how to describe to configure YUM to work behind proxy server using username / password for authentication. YUM is great tool available in RHEL/Fedora/CentOS to install/update/remove packages easily from local and internet repositories. In the most offices / schools / colleges where proxies are implemented and direct connection to the internet is not possible and all internet traffic goes through proxy servers. Same as in my office we have to use proxy server with username / password to authenticate ourself to get internet access. So we are going to configure my YUM software to use proxy to get my LINUX updated with new softwares all the times with repositories available on internet.
OS = Fedora 10
1) Configure yum.conf
enter following lines at bottom of [main] section
2) Export http_proxy variable
3) Export http_proxy variable in bash login script
This will help you to export http_proxy variable automatically everytime you login.
Now use “yum list” command to check for its working.
Enjoy Brothers 🙂
» Linux, Programming / Scripting » How To Configure Yum Behind Authenticated...
31 Responses to How To Configure Yum Behind Authenticated Proxy Server
Leave a Reply
« How To Split Large Files / Directories Under Linux HowTo Wget behind Authenticated Proxy »
Tanks! I have Ferdora 13!
In Fedora 13 it works too =)
Muchas Gracias por el dato, esta solución es factible.. ahora vamos por el postgres y el pgadmin!!
En mi caso, el servidor proxy no cuenta con usuario ni password para acceder, asi que los omiti.
La cuestion es que a la primera no funciono, solo despues de colocar 10.11.12.9:8080, y dio error, luego volvi a poner http://10.11.12.9:8080/ y funciono ok.
Pero una duda, la variable http_proxy que objetivo cumple.
how to configure squid proxy server in centos5
i have installed machine now what can i do…
Please suggest to me……
i hv used yr tutorial for fedora 11 onwards. i recently updated ma system to 15 and it is not workin. plz help me out
itz workin bt on other address
thanx a lot
How to give windows domain username and password?
i tried with
domain\username, but it never works
@Siju: First you need to see whether your domain user/pass is been used to access the internet or not. As per mine in above instruction I am using it and it working absolutely fine.
The above username i given is of Windows Domain user/pass which is same as our internet access.
Check your settings again, you might has miss something.
thanks, worked for fedora 15. (tried a lot of methods from other blogs b4)
thanks, worked for fedora 15. (tried a lot of methods from other blogs b4 and failed)
I use bluetooth to access internet in RHEL 6.
while installing any package using YUM i got followong error
Setting up Install Process
No package miro available].
Error: Nothing to do
pleasse tell me how to configure yum conf file for bluetooth
the error showing there is an issue with javac command of openjdk installation. Can you please reconfirm that you do have javac compiler
/usr/local/red5/build.xml:209: The following error occurred while executing this line:
/usr/local/red5/build.xml:230: Error running /usr/lib/jvm/java-1.6.0-openjdk-18.104.22.168.x86_64/bin/javac compiler
run following command, if it shows the same path, then it exist else it will says no file found.
ls -l /usr/lib/jvm/java-1.6.0-openjdk-22.214.171.124.x86_64/bin/javac
Thanks a lot friend!!
Worked on Fedora 15..
its working on most of the systems, but its not working on one of the system. Its fedora 13 only and have tried the same steps.but dont know why its not working.
I tried using my domain\loginid and password but it is not working for me. Although I can access interent in firefox because it prompts for credentials.
I am getting this error.
[root@kick ~]# yum repolist
Loaded plugins: downloadonly, rhnplugin, security
Config time: 0.144
This system is not registered with RHN.
RHN support will be disabled.
Yum Version: 3.2.22
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=i386 error was
[Errno 14] HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
works without any trouble, Thanx.
how to configure yum n create a yum server
i create a local reposetory but i want how to create a yum server
Thanks……..it helped a lot 😀
My proxy password contains @ and this error occurred
14: PYCURL ERROR 5 – “Couldn’t resolve proxy ‘nalis1602@localhost'”
@Williiam: You can use escape character like back slash before @ symbol like this \@ to avoid this error.
I get folloiwing error
base/primary_db | 365 kB 00:00 …
http://mirror.nbrc.ac.in/centos/6.4/os/x86_64/repodata/1e584feac3f3fb76ad4b6fb7e1bc8d44fa124814e9d186dc913ded3c63a216b3-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
wonder what setting is to be done in yum.conf file.
Worrked on Fedora 13
Linux hope 126.96.36.199-85.fc13.i686.PAE #1 SMP Thu May 6 18:27:11 UTC 2010 i686 i686 i386 GNU/Linux
Good tutorial. works great !
I have been looking for an option to use DOMAIN\Username and password, but it does not works. Probably because I have few special chars in my password (like @ and #).
I have a rhel 7.2 which are using multiple NIC, loopbacks interface and teaming interface. One of the loopback can goes to the internet while using direct NIC or teaming does not. How I want to make the yum using the loopbacks interface to connect to the Internet?