LinuxQuestions.org
Review your favorite Linux distribution.
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 06-08-2007, 08:01 AM   #1
christine_lewis
LQ Newbie
 
Registered: Jul 2005
Location: WI
Distribution: fedora
Posts: 19

Rep: Reputation: 0
Messed up repositories (F7)


So, I updated from FC6 to 7 (using the DVD) and while I was trying to fix the video card driver I started getting "cannot open/read repomd.xml repository: fedora" errors. After that the only way I got yum to work was to disable/remove fedora.repo and fedora-updates.repo, but I think that might cause me problems later.

The (previously) enabled bit of fedora.repo had looked like this:

Code:
[fedora]
name=Fedora $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
Would someone suggest what I might need to change, please? (Also, it might help me if someone could provide an example list of enabled repositories for F7)
 
Old 06-08-2007, 08:44 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You can figure this out and fix the issue by yourself, starting with a copy of the fedora-release-7-3.noarch.rpm in some directory type:

rpm2cpio < fedora-release-7-3.noarch.rpm > fc7.cpio
cpio -i -d < yum.cpio

Then have a look in the resulting yum.repos.d subdirectory at the repo files, but to save you a bit of time;

From the fedora.repo file:
[fedora]
name=Fedora $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

And from the fedora-updates.repo file:
[updates]
name=Fedora $releasever - $basearch - Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

You can (and should) copy all the repo files to the /etc/yun.repos.d directory and remove the older fedora related repo files.
 
Old 06-08-2007, 09:07 AM   #3
christine_lewis
LQ Newbie
 
Registered: Jul 2005
Location: WI
Distribution: fedora
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks! I didn't know about rpm2cpio.

I actually got it working a minute ago by wiping out everything in /etc/yum.repos.d/ and then erasing the fedora-release-6-4 and reinstalling fedora-release-7-3.
 
  


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
repositories mariotski SUSE / openSUSE 2 04-14-2007 09:03 PM
repositories mighty_falcon Debian 2 07-17-2006 01:59 PM
repositories Screener Linux - Newbie 4 02-20-2006 11:28 AM
what is repositories vishalkhandade Linux - Software 2 02-08-2006 10:02 PM
Re: Repositories RevJack Linare 1 01-28-2005 11:56 PM

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

All times are GMT -5. The time now is 05:05 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