Creating YUM repos for FC3 using gedit
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 27
  1. #1
    imdeemvp Guest

    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:
    # # 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]#
    Last edited by imdeemvp; 11th April 2006 at 07:47 AM.

  2. #2
    Join Date
    May 2004
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

    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

  3. #3
    hawley Guest
    thanks for writing that guide.
    but i have a problem with getting yum to work. here is the error im getting:
    [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?

  4. #4
    indygreen Guest
    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.

  5. #5
    Join Date
    Apr 2004
    Location
    Euregio
    Posts
    3,612
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to solve it :
    gpgcheck=0
    at freshrpms.

  6. #6
    imdeemvp Guest
    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".
    Last edited by imdeemvp; 18th November 2004 at 09:35 PM.

  7. #7
    Join Date
    Nov 2004
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  8. #8
    stricjux Guest
    same problem here, how do I solve the dependancies problem.

  9. #9
    Join Date
    Sep 2004
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    same here on that last example of dependancies

  10. #10
    imdeemvp Guest
    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.

  11. #11
    k.512 Guest

    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

  12. #12
    imdeemvp Guest
    Can you post your fc3 yum.conf?

  13. #13
    luiscorujo Guest

    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?

  14. #14
    imdeemvp Guest
    IN FC3 the yum.conf changed. Now repos are setup separetely.

  15. #15
    Join Date
    Dec 2004
    Location
    MY-HUMBLE-ABODE
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Page 1 of 2 1 2 LastLast

Similar Threads

  1. gedit
    By robghealey in forum Alpha, Beta & Snapshots Discussions (Fedora 11 Only)
    Replies: 5
    Last Post: 17th March 2009, 06:15 PM
  2. popular repos & third party repos
    By xGutsAndGloryx in forum Using Fedora
    Replies: 0
    Last Post: 12th November 2006, 07:15 PM
  3. Replies: 0
    Last Post: 15th June 2006, 09:54 AM
  4. gedit should I get it?
    By newbie_fin in forum Using Fedora
    Replies: 12
    Last Post: 4th March 2006, 10:03 PM
  5. lost about Creating YUM repos for FC3 using gedit thread
    By perkinsonline in forum Using Fedora
    Replies: 1
    Last Post: 14th September 2005, 07:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •