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 10-16-2005, 10:32 PM   #1
daacosta
Member
 
Registered: Jun 2002
Location: Norman, Oklahoma
Distribution: Fedora Core 4
Posts: 45

Rep: Reputation: 15
Unhappy yum ain't yummy...


Sorry about the heading

This is what I am getting:

Code:
[root@localhost /]# yum -y update
Setting up Update Process
Setting up repositories
updates-released          100% |=========================|  951 B    00:01
extras                    100% |=========================| 1.1 kB    00:01
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
All cool, huh?

This is where the whole thing goes down:

Code:
primary.xml.gz            100% |=========================|    0 B    00:08
http://www.fedora.is/fedora/core/upd...rimary.xml.gz: [Errno 4] Socket Error: timed out
Trying other mirror.
And it goes on and on and on...

I have dial up so there is not much I can do...

The yum.conf file is this:

Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
Why can't I update using yum? is it because the mirrors are really busy?
 
Old 10-16-2005, 10:51 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

You could try increasing the timeout. Put 'timeout=60' somewhere in yum.conf to get a 60 second timeout. The default's 30 seconds.

Dave
 
Old 10-16-2005, 11:24 PM   #3
daacosta
Member
 
Registered: Jun 2002
Location: Norman, Oklahoma
Distribution: Fedora Core 4
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks for replying! Here is the new yum.conf with the added line... Before destroying the world of Linux with this change to be implemented with the aid of VI could you please let me know if it is OK?

Thanks!

Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
timeout=60 <-- IS HERE OK?
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
 
Old 10-16-2005, 11:25 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Yeah, that should be fine.
 
Old 10-17-2005, 02:17 AM   #5
daacosta
Member
 
Registered: Jun 2002
Location: Norman, Oklahoma
Distribution: Fedora Core 4
Posts: 45

Original Poster
Rep: Reputation: 15
Talking seems to be working

yum is downloading the headers as I post... This is what has happened so far:

Code:
[root@localhost ~]# yum -y update
Setting up Update Process
Setting up repositories
updates-released          100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 341 kB    06:22
updates-re: ################################################## 981/981
Added 981 new packages, deleted 0 old in 21.98 seconds
primary.xml.gz            100% |=========================| 896 kB    16:51
extras    : ################################################## 2485/2485
Added 2485 new packages, deleted 0 old in 37.76 seconds
primary.xml.gz            100% |=========================| 824 kB    15:27
base      : ################################################## 2772/2772
Added 2772 new packages, deleted 0 old in 41.29 seconds
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
And is now downloading a bunch of headers like this one:

Code:
---> Downloading header for nc to pack into transaction set.
nc-1.82-fc4.1.i386.rpm    100% |=========================| 5.6 kB    00:04
This is the first time I do this right...

I edited the file to have a timeout of 120 seconds instead of 60 because I really wanted to make this work... Hopefully, the first time is the only time when this is going to be time-consuming and the next times I perform the yum -y update it will take less time...

What if the connection goes down? Will everything start from the beginning?




Thanks!
 
Old 10-17-2005, 05:41 AM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
If the connection goes down, it'll restart downloading the last RPM from the start, and any already downloaded will not be re-downloaded.
 
Old 10-17-2005, 10:19 AM   #7
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Whenever i do an install of FC4 and issue Yum update there's around 200MB of updates, of course this includes Open office, firefox/thunderbird and all sorts of other big files.

If you're on dialup i'd say be careful issuing that command, i would suggest only installing the very base packages you need from the CDs, updating them, then using yum to install anything else you will need, this ensures you d/l the latest version straight off the bat with minimal bandwidth usage.
 
Old 10-18-2005, 01:44 AM   #8
daacosta
Member
 
Registered: Jun 2002
Location: Norman, Oklahoma
Distribution: Fedora Core 4
Posts: 45

Original Poster
Rep: Reputation: 15
Yes, it seems that now things are going my way... I am limited to bouts of 2 hours of internet connection because of my provider but I have managed to work around this by doing the following

yum check-update

to see which updates I need to install.

I then proceeded to yum -y update z* to update all those packages starting with z and then yum update x* (without the -y flag this time because I suspected these were going to be huge...) The timeout suggestion for the yum.conf file was a lifesaver...
 
  


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
Not so YUMmy installs pmro Linux - Software 3 10-09-2004 05:10 AM
Core 2 is yummy but sloooooow dmdm Fedora 5 06-06-2004 01:06 AM
Yummy Yum ? explorer Fedora 3 04-23-2004 03:25 AM
The yummy looking kernel patch xconspirisist Fedora 4 11-09-2003 09:30 AM


All times are GMT -5. The time now is 03:47 AM.

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