Tuesday, February 5, 2008

Yum

To configure your Fedora Core 5 yum application to use the RPMForge repositories proceed as follows:

  • Open the terminal. Type:
    su -
    Hit enter. Type your root password. Hit enter.
  • Type:
    rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
    Hit enter and wait for the installation to complete.
  • Type:
    gedit /etc/yum.repos.d/macromedia.repo
    Hit enter and gedit will open.
  • Type or copy and paste the following in gedit:
    [macromedia]
    name=Macromedia for i386 Linux
    baseurl=http://macromedia.rediris.es/rpm/
    #baseurl=http://macromedia.mplug.org/rpm/
    #baseurl=http://sluglug.ucsc.edu/macromedia/rpm/
    enabled=1
    gpgcheck=1
    gpgkey=http://macromedia.rediris.es/FEDORA-GPG-KEY

    Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit.
  • Type:
    gedit /etc/yum.repos.d/dries.repo
    Hit enter and gedit will open.
  • Type or copy and paste the following in gedit:
    [dries]
    name=Extra Fedora rpms dries - $releasever - $basearch
    baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/
    enabled=1
    gpgcheck=1

    Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit.
  • While still in the root terminal type:
    rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
    Hit enter. You have just imported the GPG key for the freshrpms repository.
  • Also type:
    rpm --import http://apt.sw.be/dries/RPM-GPG-KEY.dries.txt
    Hit enter. You have just imported the GPG key for the dries repository.
  • Type:
    yum -y update
    Hit enter. Your system will be updated. Reboot your machine.
  • Note: You can temporarily disable a troublesome repository with a command such as, for example "yum -y --disablerepo updates update" as root. This is especially useful if you get the message "No more mirrors to try..." which occurs occasionally when the mirrors are very busy or down. To clean your repository data and get a fresh list of updates do a "yum clean all" followed by a "yum -y update" as root. Please see the official Fedora Core Yum guide at http://fedora.redhat.com/docs/yum/ for more details about Yum and its configuration. (Tip: Some users have reported better success with yum updates if they edit the repository files in the /etc/yum.repos.d directory and remove the comment mark ("#") from the beginning of the "baseurl=" lines, especially if they are getting "Error: Cannot find a valid baseurl for repo:" errors.)

No comments: