LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-29-2006, 06:50 PM   #1
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Yum behind proxy server


I write this to try and save people such as myslef the hours of trying to get yum to work behind a proxy. This is the exact format of my /etc/yum.conf file that got the yum to connect behind the uni proxy server.

[main]
http_proxy=http://username:password@proxyaddress:port/
proxy_username=username
proxy_password=password
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

The / at the end of the http_proxy is very important as i found out after 30 mins of mucking about. This might not be the most elegant solution, but it works.

You must also as root type: http_proxy=proxyaddress:port
export http_proxy

Note the lack of / when exporting the proxy, very important

Last edited by lebabyg; 10-30-2006 at 11:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 12:25 PM
Configuring YUM for behind a proxy server Linux_noobnoob Fedora 4 09-07-2006 04:29 PM
yum thru proxy a1ex_007 Fedora 7 06-29-2005 11:30 AM
yum & proxy koxnas Fedora 0 12-26-2004 03:30 PM
Proxy + Yum beatlelane Fedora 9 12-17-2003 09:25 AM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration