PDA

View Full Version : Yum repositories /etc/yum.repos.d



danja
2nd May 2006, 05:35 PM
Hello, i'm a no0b and i tried to yum upgrade from FC4 to FC5, However this didn't work.
in the process of doing this i changed my yum repositories and would now like to change them back.

Unfortunatly out of haist, and irational thinking i deleted all the files inside the /etc/yum.repos.d folder and guess that i no longer have any yum repositories.
Please could somebody give me some information on as to how i can replace these missing files with the right ones.

Thanks for your time. Dan.

bob
2nd May 2006, 07:17 PM
Well, we don't know whether you were using the Livna repositories or the RPMForge Group, but here's how I'd do it (assuming that you're asking to reinstate the FC4 repositories):

1). Use the yum configuration from here: http://www.fedorafaq.org/#installsoftware If you've been normally enabling Livna, that should fix you up. If not, go in and change the 'enabled=1' to 'enabled=0'.

2). Set up the RPMForge group from here: http://stanton-finley.net/fedora_core_4_installation_notes.html#Yum Again, if you're not using the RPMForge group, change the 'enabled=1' to 'enabled=0'.

smfinley
2nd May 2006, 07:52 PM
In addition to what Bob just suggested do a "yum -y remove fedora-release" followed by a "yum -y install fedora-release" as root to get your original Fedora Core repositories back that came with your Fedora installation.

smfinley
2nd May 2006, 08:15 PM
In addition to what Bob suggested you will have to recreate the repository files that come with FC5. As root do a "gedit /etc/yum.repos.d/fedora-core.repo". Copy and paste the following into it and save it.
[core]
name=Fedora Core $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
Be sure there is a blank line at the end of the file. As root do a "gedit /etc/yum.repos.d/fedora-development.repo". Copy and paste the following into it and save it.
# These packages are untested and still under development. This
# repository is used for updates to test releases, and for
# development of new releases.
#
# This repository can see significant daily turnover and major
# functionality changes which cause unexpected problems with other
# development packages. Please use these packages if you want to work
# with the Fedora developers by testing these new development packages.
#
# fedora-test-list@redhat.com is available as a discussion forum for
# testing and troubleshooting for development packages in conjunction
# with new test releases.
#
# fedora-devel-list@redhat.com is available as a discussion forum for
# testing and troubleshooting for development packages in conjunction
# with developing new releases.
#
# More information is available at http://fedoraproject.org/wiki/Testing
#
# Reproducible and reportable issues should be filed at
# http://bugzilla.redhat.com/.
#
# Product: Fedora Core
# Version: devel

[development]
name=Fedora Core - Development
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
enabled=0
gpgcheck=0

[development-debuginfo]
name=Fedora Core - Development - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/debug/
enabled=0
gpgcheck=0

[development-source]
name=Fedora Core - Development - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/
enabled=0
gpgcheck=0Be sure there is a blank line at the end of the file. As root do a "gedit /etc/yum.repos.d/fedora-extras-development.repo". Copy and paste the following into it and save it.
[extras-development]
name=Fedora Extras - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-devel
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-development-debuginfo]
name=Fedora Extras - Development - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/debug/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-development-source]
name=Fedora Extras - Development - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/SRPMS/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1Be sure there is a blank line at the end of the file. As root do a "gedit /etc/yum.repos.d/fedora-extras.repo". Copy and paste the following into it and save it.
[extras]
name=Fedora Extras $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-debuginfo]
name=Fedora Extras $releasever - $basearch - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/debug/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-source]
name=Fedora Extras $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/SRPMS/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1Be sure there is a blank line at the end of the file. As root do a "gedit /etc/yum.repos.d/fedora-legacy.repo". Copy and paste the following into it and save it.
[legacy-updates]
name=Fedora Legacy $releasever - $basearch - Updates
mirrorlist=http://fedora.redhat.com/download/mirrors/legacy-updates-released-fc$releasever
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-legacy

[legacy-testing]
name=Fedora Legacy $releasever - $basearch - Updates Testing
mirrorlist=http://fedora.redhat.com/download/mirrors/legacy-updates-testing-fc$releasever
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-legacy
Be sure there is a blank line at the end of the file. As root do a "gedit /etc/yum.repos.d/fedora-updates.repo". Copy and paste the following into it and save it.
[updates]
name=Fedora Core $releasever - $basearch - Updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-debuginfo]
name=Fedora Core $releasever - $basearch - Updates - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-source]
name=Fedora Core $releasever - Updates Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Be sure there is a blank line at the end of the file. As root do a "gedit /etc/yum.repos.d/fedora-updates-testing.repo". Copy and paste the following into it and save it.
[updates-testing]
name=Fedora Core $releasever - $basearch - Test Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc$releasever
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test

[updates-testing-debuginfo]
name=Fedora Core $releasever - $basearch - Test Updates Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test

[updates-testing-source]
name=Fedora Core $releasever - Test Updates Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
Then as root do a "yum -y update".

bob
2nd May 2006, 08:42 PM
Stan, if I understand him/her properly, the FC5 update failed and he's trying to reset FC4. Edit: Ah - nebber mind, all looks right for either.

danja
2nd May 2006, 11:27 PM
Okay, Prior to your response I created 3 text files...

#### fedora.repo ####


[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
baseurl=ftp://ftp.uci.edu/mirrors/fedora/linux/core/$releasever/$basearch/os
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

#### fedora-extras.repo ####


[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
baseurl=ftp://ftp.uci.edu/mirrors/fedora/linux/extras/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

#### fedora-updates.repo ####


[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=ftp://ftp.uci.edu/mirrors/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

__________________________________________________ ____________________

I am currently trying to regain control of yum to work with fedora core 4 after the repositories changed to fc5 during the update, some files changed and now i have all sorts of dependancy issues to resolve, hopefully yum will allow me to do this.

Thanks again.

bob
3rd May 2006, 12:15 AM
Danja, as long as you've come this far why not back up your data and download the FC5 install CD's and do a fresh install? You're probably fighting more problems getting back to where you were than in going forward.

danja
3rd May 2006, 01:42 AM
I downloaded the FC5 DVD however my computer (A7V8X etc...) won't load anaconda, the CD is bootable however I am unable to install the operating system, probably some kernal issue with my NV5200 graphics card, but I don't know more than this.
I would much like to update my OS, for obviouse reasions and will at some point in time download the 5 FC5 CD's.

However I will have another poke around with YUM tomurrow and post any gathered information.

Thanks again