-
1
Dec
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
vi /etc/yum.conf
enter following lines at bottom of [main] section
proxy=http://yourproxyaddress:port/
proxy_username=youruser
proxy_password=yourpassword
2) Export http_proxy variable
export http_proxy=”http://yourproxyaddress:80/”
3) Export http_proxy variable in bash login script
vi /root/.bash_profile
export http_proxy=”http://yourproxyaddress:80/”
This will help you to export http_proxy variable automatically everytime you login.
Now use “yum list” command to check for its working.
yum list
Enjoy Brothers
- Published by Sohail Riaz in: Linux Proxy YUM
- If you like this blog please take a second from your precious time and subscribe to my rss feed!











21 Responses to “How To Configure Yum Behind Authenticated Proxy Server”
Thanks….good tutorials
Tanks! I have Ferdora 13!
Thx!
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.
Gracias
how to configure squid proxy server in centos5
i have installed machine now what can i do…
Please suggest to me……
Thanks,
Subrat Kumar
9953234836
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.
——————
Regards,
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
[root@localhost~]#
pleasse tell me how to configure yum conf file for bluetooth
Works perfectly
the error showing there is an issue with javac command of openjdk installation. Can you please reconfirm that you do have javac compiler
BUILD FAILED
/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-1.6.0.0.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-1.6.0.0.x86_64/bin/javac
———
Regards,
THX!!!
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.
Hi All,
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
Configuration
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
[root@kick ~]#
works without any trouble, Thanx.
Leave a Reply