PDA

View Full Version : Fedora 10 repositories



sparek
4th March 2009, 05:00 PM
I upgraded to Fedora 10 a couple of months ago. I don't think the upgrade updated my repositories. I think I am still getting updates from the FC9 repositories. How can I install the FC10 repositories?

When I run cat /etc/redhat-release:


Fedora release 10 (Cambridge)

When I run yum repolist:


repo id repo name status
fedora Fedora 9 - i386 enabled : 9,897
updates Fedora 9 - i386 - Updates enabled : 10

Any suggestions?

Hlingler
4th March 2009, 05:05 PM
Please post:
ls -lha /etc/yum.repos.d/

You probably just need to edit the repo file(s) (as root user or sudo) to point to the correct repos.

V

sparek
4th March 2009, 06:24 PM
Four files are listed in that directory:


-rw-r--r-- 1 root root 2.0K 2008-11-06 14:06 fedora-rawhide.repo
-rw-r--r-- 1 root root 1.2K 2008-05-06 12:16 fedora.repo
-rw-r--r-- 1 root root 1.1K 2008-05-06 12:16 fedora-updates.repo
-rw-r--r-- 1 root root 1.2K 2009-02-26 23:35 fedora-updates-testing.repo

Looks like they weren't updated. I probably upgraded to FC10 in December, maybe January.

Hlingler
4th March 2009, 08:03 PM
I suggest that you edit (as root user or sudo) to specify correct URLs - use variables wherever possible, for example:
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearchV

sparek
4th March 2009, 08:32 PM
What repos should exist though?

The best I can tell the repos are using variables.

This is the contents of the redora.repo file:


[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#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

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

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

Hlingler
4th March 2009, 08:39 PM
Mondo Bizarro. Please post results of command:
rpm -q fedora-release

V

sparek
4th March 2009, 09:06 PM
Ah, I bet that is it. This resulted in:


fedora-release-9-5.transition.noarch
fedora-release-9-2.noarch
fedora-release-10-1.noarch

I removed both fedora-release-9-5.transition.noarch and fedora-release-9-2.noarch with:


rpm -e fedora-release-9-5.transition.noarch
rpm -e fedora-release-9-2.noarch

I then did a yum clean all and a yum check-update and I am now seeing a slew of new updates.

Are all of these the recommended actions concerning this issue?

Many thanks for your help.

Hlingler
4th March 2009, 09:10 PM
Ah, I bet that is it. This resulted in:


fedora-release-9-5.transition.noarch
fedora-release-9-2.noarch
fedora-release-10-1.noarch

I removed both fedora-release-9-5.transition.noarch and fedora-release-9-2.noarch with:


rpm -e fedora-release-9-5.transition.noarch
rpm -e fedora-release-9-2.noarch

I then did a yum clean all and a yum check-update and I am now seeing a slew of new updates.

Are all of these the recommended actions concerning this issue?

Many thanks for your help.Yes - but the question is after the fact. :rolleyes:
Actually: the recommended procedure is to manually erase them without scripts:
rpm -ev --noscripts ...

so they don't hose the remaining package by running %post scripts (like: remove desktop launchers, etc.).

When you get the updates all done, install:
yum install yum-utils

The run (as root user or sudo):
package-cleanup --dupes
package-cleanup --problems

Remove old dupes, fix dependency errors.

V

sparek
4th March 2009, 09:15 PM
Sorry, my bad. Should have asked first.

Many thanks for your help. I'm going to wait until I get home to run those commands, when I'm actually at the computer. I'm at work now and have been accessing the computer remotely from ssh.

I do appreciate your help with this.