LinuxQuestions.org
Review your favorite Linux distribution.
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 11-17-2006, 04:14 PM   #1
sammy11
LQ Newbie
 
Registered: Nov 2006
Posts: 24

Rep: Reputation: 15
Question how to set proxy for rpm and yum


I am trying to follow the "fedorafaq.org" instruction to set up yum. I was able to set proxy for wget through /etc/wgetrc and did
"wget http://www.fedorafaq.org/samples/yum.conf". It went well.
When I try
rpm -Uvh http://www.fedorafaq.org/yum http://rpm.livna.org/livna-release-5.rpm
PHP Code:
I got this error message
Retrieving http://www.fedorafaq.org/yum
errorskipping http://www.fedorafaq.org/yum - transfer failed - Unknown or unexpected error
Retrieving http://rpm.livna.org/livna-release-5.rpm
errorskipping http://rpm.livna.org/livna-release-5.rpm - transfer failed - Unknown or unexpected error
rpmurl.c:103XurlFreeAssertion `u && u->magic == 0xd00b1ed0' failed.
Aborted 
It probably the proxy issue. How do set it up?
I did try downloading "yum" and "livina-release-5.rpm" and issued
"rpm yum livina-release-5.rpm" (is this the same thing as using "rpm http://..."?). It went well, but yum still does not work. I did put proxy, proxy_username, proxy_password in yum.conf. Does the location matter in that file?
Here is part of the error message when I issue "yum list available"

PHP Code:
Loading "installonlyn" plugin
Setting up repositories
livna                                                                
[1/7]
http://rpm.livna.org/fedora/5/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error nonnumeric port: '8080?'>
Trying other mirror
 
Old 11-18-2006, 09:23 AM   #2
apsivam
Member
 
Registered: Mar 2005
Location: Chennai, India
Distribution: Ubuntu, CentOS
Posts: 72

Rep: Reputation: 15
execute the following command
Code:
# export http_proxy=http://you_proxy_server:port

Last edited by apsivam; 11-18-2006 at 09:24 AM.
 
Old 11-19-2006, 12:34 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
From the Unofficial Fedora FAQ:

For more info about yum, see the yum project page. (Thanks to Ron Kuris for this tip.)

To get yum through a proxy, see the Fedora documentation about yum and proxies.

BTW: if you just want to display a code box rather than the colorful php-code box, just use "code" in square brackets.
 
Old 11-22-2006, 08:29 PM   #4
sammy11
LQ Newbie
 
Registered: Nov 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks,
Now I got it work by setting: export http_proxy=http://usernameassword@proxyserver:8080/.
It seems the only way. I tried setting proxy in GNOME, in yum.conf, and creating script file setting http_proxy. They all didn't work. Why this scrip does not work?
Quote:
http_proxy=http://usernameassword@proxyserver:8080/
export http_proxy
It seems perfectly the same as the above command line.
Anybody bother to tell me why?
 
Old 11-29-2006, 02:10 AM   #5
apsivam
Member
 
Registered: Mar 2005
Location: Chennai, India
Distribution: Ubuntu, CentOS
Posts: 72

Rep: Reputation: 15
Quote:
Originally Posted by sammy11
Thanks,
Now I got it work by setting: export http_proxy=http://usernameassword@proxyserver:8080/.
It seems the only way. I tried setting proxy in GNOME, in yum.conf, and creating script file setting http_proxy. They all didn't work. Why this scrip does not work?

It seems perfectly the same as the above command line.
Anybody bother to tell me why?
How do you execute the script if it is ./script_name it won't work you have to do "source script_name"
 
  


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
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 04:55 PM
yum thru proxy a1ex_007 Fedora 7 06-29-2005 10:30 AM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 03:03 PM
yum & proxy koxnas Fedora 0 12-26-2004 02:30 PM
Proxy + Yum beatlelane Fedora 9 12-17-2003 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration