From Fedora Project Wiki

Address: User:Crantila/FSC/CCRMA/Repositories

Installing the Repository

The following steps will install the Planet CCRMA at Home repository, intended only for Fedora Linux-based computers.

  1. Update your computer with PackageKit, KPackageKit, or by running su -c 'yum update' and approving the installation.
  2. You will have to use a terminal window for the next portion.
  3. Run the following commands: su -c 'rpm -Uvh http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/12/i386/planetccrma-repo-1.1-2.fc12.ccrma.noarch.rpm'
    • This will work for Fedora 12, 13, and 14.
    • This will work for both x86 and x86-64 computers.
  4. Update your computer again.
    • You may receive a warning that the RPM database was altered outside of "yum". This is normal.
    • Your repository definition will automatically be updated.
    • Some packages are available from Fedora repositories in addition to other repositories (like Planet CCRMA at Home). If the Planet CCRMA repository has a newer version of something than the other repositories that you have installed, then the Planet CCRMA version will be installed at this point.

Although it is necessary to use the "rpm" program directly, all other Planet CCRMA software can be installed through "yum", like all other applications. Here is an explanation of the command-line options used above:

  • -U means "upgrade," which will install the specified package, and remove any previously-installed version
  • -v means "verbose," which will print additional information meessages
  • -h means "hash," which will display hash marks (these: #) showing the progress of installation.

Setting Repository Priorities

This is optional, and recommended only for advanced users. Normally, "yum" will install the latest version of a package, regardless of which repository provides it. Using this plugin will change this behaviour, so that yum will choose package versions primarily based on which repository provides it. If a newer version is available at a repository with lower priority, yum will not upgrade the package. If you simply wish to prevent a particular package from being updated, the instructions in "Preventing LINK LINK" are better-suited to your needs.

  1. Install the "yum-plugin-priorities" package.
  2. Use a text editor or the "cat" or "less" command to verify that /etc/yum/pluginconf.d/priorities.conf exists, and contains the following text:
    [main]
    enabled = 1
    If you want to stop using the plugin, you can edit this file so that enabled = 0. This allows you to keep the priorities as set in the repository configuration files.
  3. You can set priorities for some or all repositories. To add a priority to a repository, edit its respective file in the /etc/yum.repos.d/* directory, adding a line like:
    priority = N
    where N is a number from 1 to 99, inclusive. A priority of 1 is the highest setting, and 99 is the lowest. You will need to set priorities of at least two repositories before this becomes useful.

Preventing a Package from Being Updated

This is optional, and recommended only for advanced users. Normally, "yum" will install the latest version of a package. Using this plugin will allow you to prevent certain packages from being updated. If you wish to prevent packages from a particular repository from being used, then THIS SECTION is better-suited to your needs.

  1. Install the "yum-plugin-versionlock" package.
  2. Use a text editor or the "cat" or "less" command to verify that /etc/yum/pluginconf.d/versionlock.conf exists, and contains the following text:
    enabled = 1
  3. Add the list of packages which you do not want to be updated to /etc/yum/pluginconf.d/versionlock.list. Each package should go on its own line. For example:
    jack-audio-connect-kit-1.9.4
    qjackctl-0.3.6