LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2009, 12:10 AM   #1
DJockey
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Rep: Reputation: 1
How to change mirrors during yum install if possible


Got a question hopefully somebody can answer. Well I'm doing a yum install on gcc-c++ and it seems that one of the packages is downloading at 2.2 kb/s. I've reset my router and modem plenty of times and I've notice other packages will run at 200 or above. But this one seems to be very irritating.

I was wondering is there a way to switch mirrors to see if this will speed up the process?

Thank you
 
Old 07-29-2009, 04:28 PM   #2
mek
Member
 
Registered: Jul 2009
Location: Buenos Aires, Argentina
Distribution: fedora, slackware, *bsd
Posts: 42

Rep: Reputation: 17
In the repository configuration file you should modify this:

vi /etc/yum.repos.d/fedora-updates.repo

Code:
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
you should comment the mirrorlist and uncomment the baseurl.

if you want to pick another mirror you should check what mirror is available in the mirrorlist URL, changing $releasever for 10/11 and $basearch for i386 (or your architecture)
 
Old 07-29-2009, 04:59 PM   #3
DJockey
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Thank you

Awesome, thanks for your help.
 
  


Reply



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
Yum, issue with mirrors? Shazzam6999 Fedora 5 10-07-2008 05:20 PM
Problems in YUM mirrors deepumnit Fedora 1 07-01-2008 09:19 AM
FC3 Yum/Apt Mirrors Cypionate Fedora 7 11-14-2004 03:41 AM
Where are alternative FC2 mirrors for yum? Schmurff Fedora 1 09-29-2004 09:21 AM
Fedora Core 2 yum Mirrors? Zaskar Fedora 3 02-27-2004 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 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
Open Source Consulting | Domain Registration