LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-03-2004, 11:13 PM   #1
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
yum questions


Why does yum never work for me.

I have tried to use yum a number of times and it never finds any updates to packages when I know that there is.

The program works fine but I have tried to update and install a number of things with it and it just tells me that it cant find the file or that the file is installed and up to date (when it is not).

Is there a way to add new repositories so it can look elsewhere other that the fedora site?
 
Old 04-03-2004, 11:55 PM   #2
hazza
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122

Rep: Reputation: 15
You can have more than one server for a repository when using yum by adding more URLs to the baseurl statement. An sample /etc/yum.conf for Red Hat 9 using an Australian mirror (planetmirror.com) would be:

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

[os]
name=Red Hat Linux $releasever - $basearch - os
baseurl=http://apt.planetmirror.com/redhat/$releasever/$basearch/os
        http://ayo.freshrpms.net/redhat/$releasever/$basearch/os

[updates]
name=Red Hat Linux $releasever - $basearch - updates
baseurl=http://apt.planetmirror.com/redhat/$releasever/$basearch/updates
        http://ayo.freshrpms.net/redhat/$releasever/$basearch/updates

[freshrpms]
name=Red Hat Linux $releasever - $basearch - freshrpms
baseurl=http://apt.planetmirror.com/redhat/$releasever/$basearch/freshrpms
        http://ayo.freshrpms.net/redhat/$releasever/$basearch/freshrpms
 
  


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
rpm -e & yum -remove. Easy questions. rickh Fedora 10 12-26-2005 10:46 AM
a few questions about repos for yum on fc3 dr_zayus69 Linux - Software 1 07-24-2005 03:49 PM
Fedora Core, DVDS, YUM(several questions.) webwolf70 Fedora 2 07-14-2005 11:52 PM
YUM and repositories, other FC4 general questions johannlo Fedora 7 07-07-2005 09:57 PM
yum questions for FC2 mitchdulx Fedora 4 08-16-2004 09:22 PM


All times are GMT -5. The time now is 05:37 AM.

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