Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th November 2004, 03:53 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
Creating YUM repos for FC 3, 4 and 5 using gedit

How to create you repo's using gedit. This is intended for our newbies. Dont forget to import the keys. Also you will learn how to enable and disable a particular repo which will be at the end of this thread. PLEASE NOTE THAT RECENTLY THERE HAS BEEN SOME CONFLICTING ISSUES WITH DAGS AND OTHER REPOSITORIES. It is recommended to use livna and fedora extras.

TIP: FOR fc5 I am trying just ONE REPO and it's working fine so far I've chosen freshrpms and livna BUT livna is disable all the time. A few major changes have been done to fedora so to install the repo just run this command:
Code:
rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
If you want to use livna just run this:
Code:
rpm -ivh http://rpm.livna.org/livna-release-5.rpm
Please note GPG keys are imported when using the repo. It will ask you and you accept it "Y".
Atrpms has to be added manuallly as we have done in fc 3 and 4. As shown below.

1. THESE ARE THE COMMANDS TO USE YUM.

2. Open terminal and become root (su + roots password):

3. Type:
Code:
gedit  /etc/yum.repos.d/freshrpms.repo
copy and paste it and CLICK ON SAVE!!:

[freshrpms]
name=FreshRPMS-Fresh
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
enabled=1
gpgcheck=1

REPOSITORY PUBLIC KEY: rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
3.
Code:
gedit  /etc/yum.repos.d/dag.repo
copy and paste it

[dag]
name=Dag
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag/
enabled=1
gpgcheck=1

REPOSITORY PUBLIC KEY: rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
4.
Code:
gedit  /etc/yum.repos.d/livna.repo
copy and paste it:

[livna-stable]
name=Livna.org Fedora Compatible Packages (stable)
baseurl= http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.stable
enabled=1
gpgcheck=1

[livna-unstable]
name=Livna.org Fedora Compatible Packages (unstable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.unstable
enabled=1
gpgcheck=1

[livna-testing]
name=Livna.org Fedora Compatible Packages (testing)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.testing
enabled=1
gpgcheck=1

REPOSITORY PUBLIC KEY: rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

5.
Code:
gedit  /etc/yum.repos.d/atrpms.repo
copy and paste it:

[atrpms-stable]
name=ATrpms for Fedora Core $releasever stable
baseurl=http://apt.atrpms.net/fedora/$releasever/en/$basearch/at-stable
enabled=1
gpgcheck=1

REPOSITORY PUBLIC KEY: rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms


This is my /etc/yum.conf for fedora updates


[base]
name=Fedora Core $releasever - $basearch - Base
#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
[updates-released]
name=Fedora Core $releasever - $basearch - Released 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

REPOSITORY PUBLIC KEY: rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY*

Fedora Extras
Code:
gedit  /etc/yum.repos.d/extras.repo
[extras]
name=Fedora Extras - $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
gpgcheck=1
gpgkey=http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
enabled=1

REPOSITORY PUBLIC KEY: rpm --import http://download.fedora.redhat.com/pu...-Fedora-Extras

cybrjacke has this thread using vi editor

Here are GPG-keys at fedora FAQ

This is how you use yum to install and uninstall: here

These are the commands to enable or disable a particular repo:
Disable:
Code:
yum --disablerepo=repo_name_here
for example: yum --disablerepo=livna-stable if you want to install from a particular repo.

Enable:
Code:
yum --enablerepo=repo_name_here
for example: yum --enablerepo=livna-stable install xmms-mp3.

tchung's at www.fedoranews.org has 2 tutorials:

1st tutorial
2nd tutorial

My Fedora Core 4 Repos:
Quote:
# # Note: This file is no longer the entire yum configuration
# for fedorafaq.org. See http://www.fedorafaq.org/#yumconf
# for details on how to set up your system with the new
# yum configuration.

[main]
#cachedir=/var/cache/yum20
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20

#

[livna]
name=Livna.org Fedora Compatible Packages
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn
gpgcheck=1
enabled=1

#
[atrpms]
name=Fedora Core 4 - i386 - ATrpms
baseurl=http://dl.atrpms.net/fc4-i386/atrpms/stable
failovermethod=priority


#
#
[release]
name=Fedora Core 4 - i386 - Base
baseurl=http://dl.atrpms.net/fc4-i386/redhat/release
http://ayo.freshrpms.net/fedora/linux/4/i386/os/
http://download.fedora.redhat.com/pu...ore/4/i386/os/
failovermethod=priority

#
#
[updates]
name=Fedora Core 4 - i386 - Released Updates
baseurl=http://dl.atrpms.net/fc4-i386/redhat/updates
http://ayo.freshrpms.net/fedora/linux/4/i386/updates/
http://download.fedora.redhat.com/pu...pdates/4/i386/
failovermethod=priority



#
#
[extras]
name=Fedora Core 4 - i386 - Extras
baseurl=http://dl.atrpms.net/fc4-i386/redhat/extras
http://ayo.freshrpms.net/fedora/linux/4/i386/extras/
http://download.fedora.redhat.com/pu...extras/4/i386/
failovermethod=priority

#
#
[freshrpms]
name=Fedora Core 4 - i386 - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/4/i386/freshrpms
http://freshrpms.atrpms.net/fedora/l...i386/freshrpms
failovermethod=priority

#
#
[gstreamer]
name=Fedora Core 4 - i386 - GStreamer
baseurl=http://gstreamer.freedesktop.org/pkg/fedora/4/i386/yum/gst
failovermethod=priority

#
#
[jpackage-generic-free]
name=Fedora Core 4 - common - JPackage 1.6 generic/free
baseurl=http://mirrors.sunsite.dk/jpackage/1.6/generic/free
ftp://jpackage.hmdc.harvard.edu/JPac...6/generic/free
failovermethod=priority

#
#
[jpackage-generic-devel]
name=Fedora Core 4 - common - JPackage 1.6 generic/devel
baseurl=http://mirrors.sunsite.dk/jpackage/1.6/generic/devel
ftp://jpackage.hmdc.harvard.edu/JPac.../generic/devel
failovermethod=priority

#
#
[jpackage-distspecific-free]
name=Fedora Core 4 - common - JPackage 1.6
baseurl=http://mirrors.sunsite.dk/jpackage/1.6/fedora-4/free
ftp://jpackage.hmdc.harvard.edu/JPac.../fedora-4/free
failovermethod=priority

#
#
# [jpackage-distspecific-devel]
# name=Fedora Core 4 - i386 - JPackage 1.6
# baseurl=http://mirrors.sunsite.dk/jpackage/1.6/fedora-4/devel
# ftp://jpackage.hmdc.harvard.edu/JPac...fedora-4/devel
# failovermethod=priority

#
# There are also testing and unstable repos
# testing requires stable, and unstable requires testing
#
[kde-redhat]
name=Fedora Core 4 - i386 - kde-redhat
baseurl=http://apt.kde-redhat.org/apt/kde-redhat/fedora/4/i386/stable
failovermethod=priority

#
# There are also testing and unstable repos
# testing requires stable, and unstable requires testing
#
[kde-redhat-all]
name=Fedora Core 4 - i386 - kde-redhat distribution independent
baseurl=http://apt.kde-redhat.org/apt/kde-redhat/all/stable
failovermethod=priority

#
#
[newrpms]
name=Fedora Core 4 - i386 - NewRPMS
baseurl=http://newrpms.atrpms.net/apt/redhat/en/i386/fc4
http://newrpms.sunsite.dk/apt/redhat/en/i386/fc4
failovermethod=priority

#
# alternatives to production: testing and experimental
# there is also a graveyard repo
#

[root@laptopFC4 imdeemvp]#
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D

Last edited by imdeemvp; 11th April 2006 at 07:47 AM.
Reply With Quote
  #2  
Old 18th November 2004, 11:43 AM
Heon2574's Avatar
Heon2574 Offline
Registered User
 
Join Date: May 2004
Posts: 206
Thanks but a few problems.

I had already installed some rpms from the freshrpms repo in your post (mplayer, xine, etc...), added the other 3 repos and did "yum check-update" and was surprised at how many updates packages were there for my system. Is this normal? Did you get as many packages?

Also, I'm getting lots of "Error: Missing Dependency" messages when I do "yum update." How can I get those dependencies resolved?

Quote:
Error: Missing Dependency: libasound.so.2 is needed by package xine-lib
Error: Missing Dependency: libxml2.so.2 is needed by package dia
Error: Missing Dependency: libxml2.so.2 is needed by package libgnomeprint22
Error: Missing Dependency: libxml2.so.2 is needed by package gnome-kerberos
Error: Missing Dependency: libxml2.so.2 is needed by package gimp
Error: Missing Dependency: libasound.so.2 is needed by package kdeaddons
Error: Missing Dependency: libxml2.so.2 is needed by package rhn-applet
Error: Missing Dependency: libasound.so.2 is needed by package mplayer
Error: Missing Dependency: libxml2.so.2 is needed by package libxklavier
Error: Missing Dependency: libxml2.so.2 is needed by package eog
Error: Missing Dependency: libxml2.so.2 is needed by package usermode-gtk
Error: Missing Dependency: libasound.so.2 is needed by package SDL_mixer
Error: Missing Dependency: libxml2.so.2 is needed by package bluez-pin
Error: Missing Dependency: libasound.so.2 is needed by package esound
Error: Missing Dependency: libxml2.so.2 is needed by package libgsf
Error: Missing Dependency: libxml2.so.2 is needed by package gnome-session
Error: Missing Dependency: libasound.so.2(ALSA_0.9) is needed by package control-center
Error: Missing Dependency: libasound.so.2(ALSA_0.9) is needed by package pwlib
Error: Missing Dependency: libasound.so.2 is needed by package SDL_image
Error: Missing Dependency: libasound.so.2 is needed by package control-center
Error: Missing Dependency: libasound.so.2 is needed by package kdepim
Error: Missing Dependency: libasound.so.2(ALSA_0.9.0rc8) is needed by package alsa-lib
Error: Missing Dependency: libFLAC.so.4 is needed by package kdemultimedia
Error: Missing Dependency: libasound.so.2(ALSA_0.9.5) is needed by package alsa-lib
Error: Missing Dependency: libFLAC.so.4 is needed by package xine-lib
Error: Missing Dependency: libFLAC++.so.2 is needed by package k3b
Error: Missing Dependency: libFLAC.so.4 is needed by package k3b
Error: Missing Dependency: libFLAC.so.4 is needed by package vorbis-tools
Error: Missing Dependency: libFLAC.so.4 is needed by package gstreamer-plugins
__________________
athlon 64 3700+ san diego | asus a8n5x | x1900xt | 1GB

Compaq Presario R3000 (DP533AV) | Athlon XP-M 2800+ | 512MB | 54g WLAN | Geforce4 MX 420 Go 32M | 40GB | 15.4" WXGA
Reply With Quote
  #3  
Old 18th November 2004, 04:57 PM
hawley Offline
Registered User
 
Join Date: Nov 2004
Posts: 66
thanks for writing that guide.
but i have a problem with getting yum to work. here is the error im getting:
Quote:
[hawley@localhost ~]$ su
Password:
[root@localhost hawley]# yum install mplayer
Setting up Install Process
Setting up Repo: freshrpms
repomd.xml 100% |=========================| 843 B 00:00
Setting up Repo: dag
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: livna-stable
repomd.xml 100% |=========================| 951 B 00:00
Setting up Repo: atrpms-stable
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 129 kB 00:01
http://ayo.freshrpms.net/fedora/linu...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from freshrpms: [Errno 256] No more mirrors to try.
this happens with every repo i try to use, anyone know how i can fix this?
Reply With Quote
  #4  
Old 18th November 2004, 05:58 PM
indygreen Offline
Registered User
 
Join Date: Nov 2004
Age: 46
Posts: 13
Quote:
Originally Posted by hawley
thanks for writing that guide.
but i have a problem with getting yum to work. here is the error im getting:

this happens with every repo i try to use, anyone know how i can fix this?
same problem here, as well.
Reply With Quote
  #5  
Old 18th November 2004, 06:03 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
to solve it :
gpgcheck=0
at freshrpms.
__________________
--
http://twitter.com/ik12
Reply With Quote
  #6  
Old 18th November 2004, 08:22 PM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
Yes the gpgcheck=1 and enabled=1 can be disabled on all of them if you wish. Make changes by commenting out the "1" and inserting a "0".
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D

Last edited by imdeemvp; 18th November 2004 at 08:35 PM.
Reply With Quote
  #7  
Old 20th November 2004, 03:42 PM
Evil-I Offline
Registered User
 
Join Date: Nov 2004
Posts: 90
HTML Code:
 Error: Missing Dependency: libasound.so.2 is needed by package xine-lib
Error: Missing Dependency: libxml2.so.2 is needed by package dia
Error: Missing Dependency: libxml2.so.2 is needed by package libgnomeprint22
Error: Missing Dependency: libxml2.so.2 is needed by package gnome-kerberos
Error: Missing Dependency: libxml2.so.2 is needed by package gimp
Error: Missing Dependency: libasound.so.2 is needed by package kdeaddons
Error: Missing Dependency: libxml2.so.2 is needed by package rhn-applet
Error: Missing Dependency: libasound.so.2 is needed by package mplayer
Error: Missing Dependency: libxml2.so.2 is needed by package libxklavier
Error: Missing Dependency: libxml2.so.2 is needed by package eog
Error: Missing Dependency: libxml2.so.2 is needed by package usermode-gtk
Error: Missing Dependency: libasound.so.2 is needed by package SDL_mixer
Error: Missing Dependency: libxml2.so.2 is needed by package bluez-pin
Error: Missing Dependency: libasound.so.2 is needed by package esound
Error: Missing Dependency: libxml2.so.2 is needed by package libgsf
Error: Missing Dependency: libxml2.so.2 is needed by package gnome-session
Error: Missing Dependency: libasound.so.2(ALSA_0.9) is needed by package control-center
Error: Missing Dependency: libasound.so.2(ALSA_0.9) is needed by package pwlib
Error: Missing Dependency: libasound.so.2 is needed by package SDL_image
Error: Missing Dependency: libasound.so.2 is needed by package control-center
Error: Missing Dependency: libasound.so.2 is needed by package kdepim
Error: Missing Dependency: libasound.so.2(ALSA_0.9.0rc8) is needed by package alsa-lib
Error: Missing Dependency: libFLAC.so.4 is needed by package kdemultimedia
Error: Missing Dependency: libasound.so.2(ALSA_0.9.5) is needed by package alsa-lib
Error: Missing Dependency: libFLAC.so.4 is needed by package xine-lib
Error: Missing Dependency: libFLAC++.so.2 is needed by package k3b
Error: Missing Dependency: libFLAC.so.4 is needed by package k3b
Error: Missing Dependency: libFLAC.so.4 is needed by package vorbis-tools
Error: Missing Dependency: libFLAC.so.4 is needed by package gstreamer-plugins

I'm getting similar dependency issues, are there any issues with the repositories above running concurrently? How would I go about sorting these dependency issues?

Many Thanks,

E-I
Reply With Quote
  #8  
Old 20th November 2004, 05:39 PM
stricjux Offline
Registered User
 
Join Date: Nov 2004
Posts: 1
same problem here, how do I solve the dependancies problem.
Reply With Quote
  #9  
Old 20th November 2004, 11:11 PM
fyrie Offline
Registered User
 
Join Date: Sep 2004
Posts: 89
same here on that last example of dependancies
Reply With Quote
  #10  
Old 21st November 2004, 06:30 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
Guys please disable the enable=1 and change to be enable=0 same applies to gpgcheck=1 change to be gpgcheck=0.

That will fix your problem I have noted at the end of the post.
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #11  
Old 21st December 2004, 08:24 AM
k.512 Offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Problem with dependencies

Thank you, that guide helped me a lot.

But I also have a problem with dependencies, when I do «yum update».

I have a few packages to update, but when I turn off «enabled» and «gpgcheck», it seems to not verify updates at all... That resolves the dependency problem, of course, but yum doesn't detect any update to do after.

I also find something interesting there :
HTML Code:
http://lists.terrasoftsolutions.com/pipermail/yellowdog-newbie/Week-of-Mon-20040802/005698.html
After, I tried to comment out «obsolete=1», then I can update without dependency error. But there's another problem : sometimes we still need this option for version upgrades (ref.: «man yum»)


Do you have any other solution?


k.512
Reply With Quote
  #12  
Old 21st December 2004, 08:31 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
Can you post your fc3 yum.conf?
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #13  
Old 28th December 2004, 02:21 AM
luiscorujo Offline
Registered User
 
Join Date: Dec 2004
Age: 36
Posts: 12
Question

I have 2 questions

1. Why do you have al those yum.repo files, when in the Fedora FAQ they are all together in their yum.conf ?

2. I use a local yum.conf (from Portugal). Is there any problem if I use the yum.repo file you' ve created in this topic/paste them into my yum.conf?
Reply With Quote
  #14  
Old 28th December 2004, 02:52 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
IN FC3 the yum.conf changed. Now repos are setup separetely.
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #15  
Old 7th January 2005, 12:51 PM
ThersOnly1Hutch's Avatar
ThersOnly1Hutch Offline
Registered User
 
Join Date: Dec 2004
Location: MY-HUMBLE-ABODE
Posts: 98
Are these repositories using gedit still usable ,as I tried them and all I get back is a blank white screen, but when I go to close the white screen I get asked if I want to save it or discard,am I supposed to have something set up for gedit to add these repos ,Im new to this way of adding repos, and dont understand how to set up repos for yum ,infact I tried adding keys one time and got nowhere. can you help some how
Reply With Quote
Reply

Tags
creating, fc3, gedit, repos, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gedit robghealey Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 5 17th March 2009 06:15 PM
popular repos & third party repos xGutsAndGloryx Using Fedora 0 12th November 2006 06:15 PM
Gedit gives error when no write access - ImportError: No module named gedit wpyung Using Fedora 0 15th June 2006 09:54 AM
gedit should I get it? newbie_fin Using Fedora 12 4th March 2006 09:03 PM
lost about Creating YUM repos for FC3 using gedit thread perkinsonline Using Fedora 1 14th September 2005 07:11 AM


Current GMT-time: 08:01 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat