Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi guyz, Whenever i try to install anything using yum, the usual procedure is that it tries to download new packages from the 1st mirror, if that fails then next ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    17

    Configure yum mirror

    Hi guyz,

    Whenever i try to install anything using yum, the usual procedure is that it tries to download new packages from the 1st mirror, if that fails then next mirror, and so on.

    I want to force yum to always use one particular mirror that is included in official mirror list.

    How can I do that, any ideas?

    Thnax in advance.

  2. #2
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile

    you have to install
    Code:
    yum install yum-fastestmirror yumex yum-utils
    Code:
    [mirandam@charon ~]$ sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
    
    [mirandam@charon ~]$ sudo rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
    HTML Code:
    http://dag.wieers.com/rpm/FAQ.php#B2

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Could you post exact error message? Are you behind proxy?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Nov 2008
    Posts
    17
    Thanx ved, but i think you have written the method of using the fastest available mirror. Thats not my point

  5. #5
    Just Joined!
    Join Date
    Nov 2008
    Posts
    17
    Quote Originally Posted by devils casper View Post
    Could you post exact error message? Are you behind proxy?
    There is no error message as yet. yum is working fine, doing all installations cleanly.

    What I actually want is that, the specific mirror I am talking about, is also my local ISP. If using yum, all packages are downloaded from that very mirror, I will not be charged for data downloads. Thats why I want to configure yum to always use that mirror. Hope that clarifies my point.

  6. #6
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile

    i think you want to use only specific mirror for this you go to the folder ie
    /ete/yum.respond and delete unwanted mirror
    mirror look like that
    Code:
    [ved@localhost yum.repos.d]$ ls
    adobe-linux-i386.repo        rpmfusion-free-updates.repo
    dvd.repo                     rpmfusion-free-updates-testing.repo
    fedora.repo                  rpmfusion-nonfree-rawhide.repo
    fedora-updates.repo          rpmfusion-nonfree.repo
    fedora-updates-testing.repo  rpmfusion-nonfree-updates.repo
    rpmfusion-free-rawhide.repo  rpmfusion-nonfree-updates-testing.repo
    rpmfusion-free.repo

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Have you removed # sign before baseurl and mirrorlist lines in Fedora's repo files?
    Post the contents of /etc/yum.repos.d/fedora.repo and fedora-updates.repo files here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Nov 2008
    Posts
    17
    Quote Originally Posted by devils casper View Post
    Have you removed # sign before baseurl and mirrorlist lines in Fedora's repo files?
    Post the contents of /etc/yum.repos.d/fedora.repo and fedora-updates.repo files here.
    Content of /etc/yum/repos.d/fedora.repo

    http :// i56.tinypic. com/11ideyq.png

    { Please copy the above link and remove its spaces. My post count is less than 15, so I can;t post external links . Sorry for inconvenience }

    What will be the effect of removing the # sign.

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Remove # sign before all baseurl lines. # comment out those lines and when you remove it, yum will download correct package list from repository.
    Code:
    su -
    cd /etc/yum.repos.d
    nano fedora.repo
    Edit file and press Ctrl+X, Y and hit Enter key to save file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Nov 2008
    Posts
    17
    Quote Originally Posted by devils casper View Post
    Remove # sign before all baseurl lines. # comment out those lines and when you remove it, yum will download correct package list from repository.
    Code:
    su -
    cd /etc/yum.repos.d
    nano fedora.repo
    Edit file and press Ctrl+X, Y and hit Enter key to save file.
    Thanx man.

    I removed the # before baseurl lines and also replaced download.fedoraproject.com with address of my desired mirror.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...