LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-24-2004, 07:57 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Question on yum.conf - Repostories


Hi folks,

I just finished installing a FedoraCore2 box and ran update with following default yum.conf.

/etc/yum.conf
Code:
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
Now I'm prepared to use following new yum.conf with more Repositories added.

/etc/yum/conf
Code:
[base]
name=Fedora Core 2 - i386 - Base
baseurl=http://mirror.hiwaay.net/redhat/fedora/linux/core/2/i386/os
  http://rpmfind.net/linux/fedora/core/2/i386/os
  http://mirror.clarkson.edu/pub/distr...core/2/i386/os
  http://mirrors.usc.edu/pub/linux/fed...2/i386/RPMS.os

[updates-released]
name=Fedora Core 2 - i386 - Released Updates
baseurl=ftp://ftp.ens.utulsa.edu/pub/linux/fedora/core/updates/2/i386
  http://rpmfind.net/linux/fedora/core/updates/2/i386
  http://mirror.clarkson.edu/pub/distr...updates/2/i386
  http://mirrors.usc.edu/pub/linux/fed...6/RPMS.updates
  http://download.fedora.redhat.com/pu...pdates/2/i386/  

###################
## Fedora Extras ##
###################

[fedora-stable]
name=Fedora.us Extras (Stable)
baseurl=http://mirrors.kernel.org/fedora.us/fedora/fedora/2/i386/RPMS.stable
  http://fedora.quicknet.nl/fedora/fed...86/RPMS.stable
  http://mirrors.usc.edu/pub/linux/fed...86/RPMS.stable
  http://fedora.mirror.sdv.fr/fedora/f...86/RPMS.stable
  http://download.fedora.us/fedora/fed...86/RPMS.stable

[fedora-unstable]
name=Fedora.us Extras (Unstable)
baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.unstable
  http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.unstable
  http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.unstable
  http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable
  http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable

[fedora-testing]
name=Fedora.us Extras (Testing)
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
  http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.testing
  http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.testing
  http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
  http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.testing

###############
## Livna.org ##
###############

[livna-stable]
name=Livna.org - Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/2/i386/yum/stable
  http://livna.cat.pdx.edu/fedora/2/i386/yum/stable

[livna-unstable]
name=Livna.org - Fedora Compatible Packages (unstable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
  http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/unstable

###################
## Miscellaneous ##
###################

[macromedia.mplug.org]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/apt/fedora/2
  http://sluglug.ucsc.edu/macromedia/apt/fedora/2
Please advise whether there will any conflict in running further update with the new yum.conf as abovementioned.

TIA

B.R.
satimis
 
Old 09-24-2004, 04:22 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
I would run 'yum clean all' before using a new yum.conf. Also, I've sometimes seen yum leave behind the old cache directories after I've changed repositories - after you've successfully run yum with the new conf it's worth going into /var/cache/yum and deleting any orphan cache directories.
 
Old 09-24-2004, 08:28 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi hob,

Tks for your advice.

Quote:
I would run 'yum clean all' before using a new yum.conf.
Is it as 'root' to run
# yum clean all
(before running new yum.conf)???

Quote:
..after you've successfully run yum with the new conf it's worth going into /var/cache/yum and deleting any orphan cache directories.
Please advise what are "orphan cache directories" ?

I found follows (before running new yum.conf)

# ls /var/cache/yum/
base updates-released
# ls /var/cache/yum/base/
header.info headers packages

# ls /var/cache/yum/updates-released/
header.info headers packages

TIA

B.R.
satimis
 
Old 09-25-2004, 09:15 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
You have to be root for yum functions to work.

If you define a repository and download packages from it these go into a directory in /var/cache/yum with the same name that the repository has in yum.conf. If you then delete the repository in yum.conf then the directory in /var/cache/yum is still there, but isn't going to do anything any more, so it's 'orphaned'. Changing the URLs is OK, as you are doing. You'll only see this problem if you decide to get rid of one of the repositories later.

BTW, is it's a good idea to use the variables ($basearch, $releasever), rather than specify the arch and version. Using variables means that the yum.conf will be valid if you upgrade to a new version of Fedora, or copy configuration on to another machine.
 
Old 10-05-2004, 06:34 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
HI hob,

Tks for your detail advice.

On running
# yum clean all
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora.us Extras (Stable)
Error - /var/cache/yum/fedora-stable/header.info cannot be found
Please run yum in non-caching mode to correct this header.

Please advise how to run yum in non-caching mode. What is 'non-caching mode'

TIA

B.R.
satimis
 
Old 10-05-2004, 06:43 AM   #6
FunkyRes
Member
 
Registered: Mar 2004
Distribution: CentOS
Posts: 174

Rep: Reputation: 30
I wouldn add fedora testing or unstable.
They aren't in my experience needed for the livna packages, even livna testing or unstable.

If they contain a package you need, then sure - but they can conflict with Fedora Stable.
 
Old 10-05-2004, 02:45 PM   #7
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
That sounds like yum has not been run with this repository before, so there is nothing to 'clean'. So don't worry about it. Run 'yum list' to update the "header" files without actually triggering any updates. If the 'yum list' runs OK then everything is fine.

It's true that Livna packages don't necessarily depend on Testing or Unstable - I don't currently have those repositories in my yum.conf to get Livna packages. On the other hand, I've seen Livna packages that do. I chose to keep the list short and take the chance because this machine is on a slow connection.
 
Old 10-05-2004, 08:42 PM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi hob,

Tks for your advice.
Quote:
That sounds like yum has not been run with this repository before, so there is nothing to 'clean'. So don't worry about it. Run 'yum list' to update the "header" files without actually triggering any updates. If the 'yum list' runs OK then everything is fine.
Whether run

# yum list

first. If no complaint then run

# yum update
straight without running

#yum clean all
first

Following is the new yum.conf list

# cat /etc/yum.conf
Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
# Added this because some mirrors go down and then retying takes forever.
retries=2


[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
  http://mirror.hiwaay.net/redhat/fedora/linux/core/$releasever/$basearch/os
  http://rpmfind.net/linux/fedora/core/$releasever/$basearch/os
  http://mirror.clarkson.edu/pub/distr...ra/linux/core/$releasever/$basearch/os
  http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.os

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
  http://ftp.ens.utulsa.edu/pub/linux/.../core/updates/$releasever/$basearch
  http://rpmfind.net/linux/fedora/core/updates/$releasever/$basearch
  http://mirror.clarkson.edu/pub/distr.../core/updates/$releasever/$basearch
  http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.updates

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearc$

#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/


###################
## Fedora Extras ##
###################

[fedora-stable]
name=Fedora.us Extras (Stable)
baseurl=http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.stable
  http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.stable
  http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.stable
  http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.stable
  http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.stable

#[fedora-unstable]
#name=Fedora.us Extras (Unstable)
#baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.unstable
#  http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.unstable
#  http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.unstable
#  http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable
#  http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable

#[fedora-testing]
#name=Fedora.us Extras (Testing)
#baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
#  http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.testing
#  http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.testing
#  http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
#  http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.testing


###############
## Livna.org ##
###############

[livna-stable]
name=Livna.org - Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
  http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/stable


#[livna-unstable]
#name=Livna.org - Fedora Compatible Packages (unstable)
#baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
#  http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/unstable


###################
## Miscellaneous ##
###################

[macromedia.mplug.org]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever
  http://sluglug.ucsc.edu/macromedia/apt/fedora/$releasever
  http://ruslug.rutgers.edu/macromedia/apt/fedora/$releasever
  http://macromedia.rediris.es/apt/fedora/$releasever
I have comment out

#[updates-testing]
#[development]
#[fedora-unstable]
#[fedora-testing]
#[livna-unstable]

Which will be erased later before running "yum list".

Quote:
[/b]It's true that Livna packages don't necessarily depend on Testing or Unstable - I don't currently have those repositories in my yum.conf to get Livna packages. On the other hand, I've seen Livna packages that do. I chose to keep the list short and take the chance because this machine is on a slow connection. [/B]
Noted with tks.

I will erase Livna Testing and Unstable before running

# yum list

After finish running
# yum update
shall I run

# yum clean all

and clean the orphan

TIA

B.R.
satimis
 
Old 10-06-2004, 08:42 AM   #9
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Don't worry too much about running 'clean'. It's a precaution, but the fact that you got a message basically saying that there was nothing to clean for a repository is fine. Clear error messages are not a feature of the current version of yum.

Again, it's a precaution to run 'yum list' once. It means that the header files will be downloaded or errors will show up without worrying about a bad upgrade or install. I tend to be cautious with a software management system until I've tested that it's working right.
 
Old 10-06-2004, 09:14 AM   #10
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
Hi folks,

Thanx for this thread, it was very usefull to me.

:-)

best regards,

Xan
 
Old 10-06-2004, 09:36 AM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi hob,

# yum list
Code:
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
retrygrab() failed for:
  http://rpmfind.net/linux/fedora/core...rs/header.info
  Executing failover method
Server: Fedora.us Extras (Stable)
Server: Livna.org - Fedora Compatible Packages (stable)
Server: macromedia.mplug.org - Flash Plugin
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
........
Following warning popup;
retrygrab() failed for:
http://rpmfind.net/linux/fedora/cor...ers/header.info
Executing failover method


# yum update
Code:
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora.us Extras (Stable)
Server: Livna.org - Fedora Compatible Packages (stable)
Server: macromedia.mplug.org - Flash Plugin
Server: Fedora Core 2 - i386 - Released Updates
retrygrab() failed for:
  http://ftp.ens.utulsa.edu/pub/linux/...rs/header.info
  Executing failover method
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[update: cups-devel 1:1.1.20-11.4.i386]
[update: cups-libs 1:1.1.20-11.4.i386]
[update: cups 1:1.1.20-11.4.i386]
Is this ok [y/N]: y
Getting cups-devel-1.1.20-11.4.i386.rpm
cups-devel-1.1.20-11.4.i3 100% |=========================| 137 kB    00:01
Getting cups-libs-1.1.20-11.4.i386.rpm
cups-libs-1.1.20-11.4.i38 100% |=========================| 101 kB    00:01
Getting cups-1.1.20-11.4.i386.rpm
cups-1.1.20-11.4.i386.rpm 100% |=========================| 2.5 MB    01:30
Running test transaction:
Test transaction complete, Success!
cups-libs 100 % done 1/6
cups-devel 100 % done 2/6
cups 100 % done 3/6
Completing update for cups-devel  - 4/6
Completing update for cups-libs  - 5/6
Completing update for cups  - 6/6
Updated:  cups-devel 1:1.1.20-11.4.i386 cups-libs 1:1.1.20-11.4.i386 cups 1:1.1.20-11.4.i386
Transaction(s) Complete
Again another warning popup;
retrygrab() failed for:
http://ftp.ens.utulsa.edu/pub/linux/...rs/header.info
Executing failover method


# ls /var/cache/yum/
base fedora-testing livna-stable macromedia.mplug.org
fedora-stable fedora-unstable livna-unstable updates-released

Which of them are orphan directories

B.R.
satimis
 
Old 10-06-2004, 03:44 PM   #12
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
retrygrab() failed for:
http://rpmfind.net/linux/fedora/cor...ers/header.info
Executing failover method

This means that the URL was wrong (or is no longer active), so the next site in the list for that repository was used. You learn what the messages mean by experience :-)

As for the cache directories - all of those correspond to repository names in your yum.conf. If you decide to delete the repository entries that you've commented out, like "macromedia.mplug.org", then you might want to delete the corresponding directory. Nothing will happen if you don't, it's just good housekeeping.

Schmurff - there are various documents on yum, none of which give the complete story. It's really a technology still in development. Hopefully the next generation of yum will be ready for Fedora Core 3 and things will stabilise more after that.
 
Old 10-06-2004, 06:06 PM   #13
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi hob,

Lot of thanks for your advice and time spent.

B.R.
satimis
 
  


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 question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
yum.conf carlosinfl Fedora 1 01-29-2005 08:05 AM
FC2 yum updated to 2.1.11 need new yum.conf? peregrine2 Linux - Newbie 1 12-02-2004 07:14 AM
yum.conf question disorderly Fedora 5 06-22-2004 01:18 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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