LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-21-2005, 01:42 AM   #1
a1ex_007
LQ Newbie
 
Registered: Mar 2005
Location: Imphal
Distribution: Fedora Core 3 x86_64
Posts: 26

Rep: Reputation: 15
yum thru proxy


I am using Fedora core 3. I m connected to the internet through a squid proxy server which uses HTTP authentication. i want up2date to work throught the proxy. I configured the proxy settings on up2date but couldnt get to download the udates from the redhat update server
It shows how many updates are availasble but as i click the link to get the list of updates, it never goes ahead ............
 
Old 06-21-2005, 06:03 AM   #2
climbingmerlin
Member
 
Registered: Mar 2004
Location: UK
Distribution: Fedora, OpenSuse
Posts: 91

Rep: Reputation: 15
I never really use up2date on the gui, I like the good old comand line. Try this to update your system.

1. Open a terminal window
2. Add the proxy to your session variable e.g.
Code:
export http_proxy="http://proxyserver:proxyport"
3. type either yum update or yum -y update

The last command the -y argument means to say yes to all prompts, and will upgrade all the packages that require upgrading.

This should work, let me know if you have any problems.

regards,
climbingmerlin
 
Old 06-22-2005, 12:02 AM   #3
a1ex_007
LQ Newbie
 
Registered: Mar 2005
Location: Imphal
Distribution: Fedora Core 3 x86_64
Posts: 26

Original Poster
Rep: Reputation: 15
I tried with ur advice but the proxy i use has user authentication. I wud like to know a way to specify the user and password for the proxy.
 
Old 06-27-2005, 01:02 PM   #4
climbingmerlin
Member
 
Registered: Mar 2004
Location: UK
Distribution: Fedora, OpenSuse
Posts: 91

Rep: Reputation: 15
humm... I am not sure, as far as I know it should prompt you for the user name and password, and then carry on with giving you access.

I'll have to look in to this, and try it myself.

Grant
 
Old 06-28-2005, 07:11 AM   #5
Y2J
LQ Newbie
 
Registered: Oct 2003
Distribution: Fedora
Posts: 16

Rep: Reputation: 0
Heeeeeeeeeeey .. mine working like hell here
yeaah , at last yum want to update the repos
hehe , i was staying all the yesterday night in this YUM without figuring out the proxy will not here !!
Code:
[root@Y2J ~]# yum update
Setting up Update Process
Setting up repositories
dag                       100% |=========================| 1.1 kB    00:00
freshrpms                 100% |=========================|  951 B    00:00
atrpms                    100% |=========================|  951 B    00:00
updates-released          100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  147 B    00:00
Added 0 new packages, deleted 0 old in 0.01 seconds
primary.xml.gz            100% |=========================|  39 kB    00:01
freshrpms : ################################################## 117/117
Added 117 new packages, deleted 0 old in 1.91 seconds
primary.xml.gz            100% |=========================|  48 kB    00:01
atrpms    : ################################################## 218/218
Added 218 new packages, deleted 0 old in 2.40 seconds
primary.xml.gz            100% |=========================|  81 kB    00:02
updates-re: ################################################## 214/214
Added 214 new packages, deleted 0 old in 4.90 seconds
primary.xml.gz            100% |=========================| 824 kB    00:30
base      : ################################################## 2772/2772
Added 2772 new packages, deleted 0 old in 38.38 seconds
primary.xml.gz            100% |=========================| 409 kB    00:16
....
what's next yum gonna do then ?
 
Old 06-29-2005, 08:55 AM   #6
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally posted by a1ex_007
I tried with ur advice but the proxy i use has user authentication. I wud like to know a way to specify the user and password for the proxy.
man yum.conf

Edit /etc/yum.conf and add:

proxy=http://<your_proxy_url>:<port>
proxy_username=<username>
proxy_password=<password>

You might also need to add:

timeout=300
 
Old 06-29-2005, 10:08 AM   #7
Y2J
LQ Newbie
 
Registered: Oct 2003
Distribution: Fedora
Posts: 16

Rep: Reputation: 0
[root@Y2J ~]# http_proxy="http://192.168.0.2:80"
[root@Y2J ~]# yum check-update
Setting up repositories
http://apt.sw.be/fedora/4/en/i386/da...ta/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: dag
failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.

it did it again
even i un-comment this line , no respone :
#export http_proxy="http://192.168.0.2:80"
 
Old 06-29-2005, 10:30 AM   #8
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
It's not clear to me from your response that you actually edited /etc/yum.conf, only that you declared and exported an environment variable called http_proxy.
 
  


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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
can't get yum or up2date to work. Am accessing via proxy. Tried to configure. pmprichard Linux - Networking 1 01-16-2005 12:09 PM
yum & proxy koxnas Fedora 0 12-26-2004 02:30 PM
Proxy + Yum beatlelane Fedora 9 12-17-2003 08:25 AM


All times are GMT -5. The time now is 04:45 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