LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fedora ropository files (https://www.linuxquestions.org/questions/linux-newbie-8/fedora-ropository-files-678524/)

lost_wonder 10-23-2008 07:19 AM

Fedora ropository files
 
Hi all

Being new to Linux, I am learning how to set up a radius server using yum. I was given a set of files to unzip and install but I encountered problems. There were four files that are of interest to me. They are:

1) feedora-development.repo
2) fedora-updates-testing.repo
3) fedora-updates.repo
4) fedora.repo

I need to know what these files do and how they work. Is there anyone out there who can explain how these files work? Any info will be greatly appreciated. Thank you

notorp 10-23-2008 08:18 AM

Yum setup
 
The files you list above normally live in /etc/yum.repos.d/

This directory is referenced by the yum.conf file which also lives in the /etc/

The files contain information pertaining to channels (repos) which contain xml indexes of rpm files.

The fedora repo files actually point to mirror lists rather than to actual repo servers but the mirror lists do point to the repo servers.

If you edit a file in your favourite text editor you will see something like this (fedora.repo):

Code:

[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

It shows:
[fedora] - the name of the repo, how it is addressed in yum name=Fedora $releasever - $basearch

$releasever and $basearch are variables which convert to your release and basearch automatically so fc8 and x86_64 for example.

The baseurl points directly to a repo location. The mirrorlists well guess what they point to mirror lists which are just a list or mirror servers.
Enabled=1 means that the repo is enabled. 0 would mean not enabled.
gpgcheck=1 tell yum to check that the rpm downloaded has a key and that it matches the key located in the gpgkey file.

In 99% of the time setting up yum is simply as case of rpm -Uvh or rpm -ivh yum.rpm

Likewise the repos normally come in rpm format so it is just a case of installing them using rpm or yum.

This website may help you?

PS

Fedora has new repo files now with the words newkey in their titles worth getting them as they have a new signing key for the rpms.


All times are GMT -5. The time now is 09:38 AM.