From Fedora Project Wiki
(page creation)
 
(re-wrote into prose)
 
Line 1: Line 1:
== Installing Repository ==
Address: User:Crantila/FSC/CCRMA/Repositories
# update
# add the repository with 'rpm -Uvh http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/12/i386/planetccrma-repo-1.1-2.fc12.ccrma.noarch.rpm'
# update again, to get the latest CCRMA thing
#* for FWT also updated jack-audio-connection-kit to a CCRMA version
#* will get a warning: "Warning: RPMDB altered outside of yum."


* works for both x86 and x86-64 machines
=== Installing the Repository ===
* works for both F12 and F13
The following steps will install the Planet CCRMA at Home repository, intended only for Fedora Linux-based computers.
* must explain why rpm is to be used instead of yum
** -U means "upgrade" (same as --upgrade); man page: "This is the same as install, except all other verion(s) of the package are removed after the new package is installed"
** -v means "verbose" (same as --verbose)
** -h means "hash" (same as --hash); prints hash marks as the package is installed, making nicer display with -v
* F13 repository is nearly empty (2010-06-01)


Tested: on FWT in F13 and F12
# Update your computer with PackageKit, KPackageKit, or by running <code>su -c 'yum update'</code> and approving the installation.
# You will have to use a terminal window for the next portion.
# Run the following commands: <code>su -c 'rpm -Uvh http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/12/i386/planetccrma-repo-1.1-2.fc12.ccrma.noarch.rpm'</code>
#* This will work for Fedora 12, 13, and 14.
#* This will work for both x86 and x86-64 computers.
# 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.


== Setting Repository Priorities: ==
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:
# run 'yum install yum-plugin-priorities'
* -U means "upgrade," which will install the specified package, and remove any previously-installed version
#* (verify that /etc/yum/pluginconf.d/priorities.conf says [main] enabled=1 ???)
* -v means "verbose," which will print additional information meessages
# go through /etc/yum.repos.d/* and add priorities like: <code> priority=N </code> where N is a number from 1 to 99, and 1 has the highest priority
* -h means "hash," which will display hash marks (these: #) showing the progress of installation.


What I would do:
=== Setting Repository Priorities ===
<pre>
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.
Fedora base at 50
<ol>
Fedora updates at 25
<li>Install the "yum-plugin-priorities" package.</li>
PlanetCCRMA at 10
<li>Use a text editor or the "cat" or "less" command to verify that <code>/etc/yum/pluginconf.d/priorities.conf</code> exists, and contains the following text:
--
<pre>[main]
VirtualBox at 75
enabled = 1</pre>If you want to stop using the plugin, you can edit this file so that <code>enabled = 0</code>.  This allows you to keep the priorities as set in the repository configuration files.</li>
RPMFusion at 75
<li>You can set priorities for some or all repositories.  To add a priority to a repository, edit its respective file in the <code>/etc/yum.repos.d/*</code> directory, adding a line like: <pre>priority = N</pre>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.</li>
RPMFusion updates at 60
</ol>
</pre>


this example is pretty arbitrary, but it gives something to work from
=== 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.
Tested: on FWT in F12
<ol>
 
<li>Install the "yum-plugin-versionlock" package.</li>
== Preventing a Package from Being Updated: ==
<li>Use a text editor or the "cat" or "less" command to verify that <code>/etc/yum/pluginconf.d/versionlock.conf</code> exists, and contains the following text:
# run 'yum install yum-plugin-versionlock'
<pre>enabled = 1</pre></li>
#* (verify that /etc/yum/pluginconf.d/versionlock.conf says enabled=1 ???)
<li>Add the list of packages which you do not want to be updated to <code>/etc/yum/pluginconf.d/versionlock.list</code>.  Each package should go on its own line.  For example:
# edit /etc/yum/pluginconf.d/versionlock.list, adding packages that won't be updated
<pre>jack-audio-connect-kit-1.9.4
#* each packages goes on its own line
qjackctl-0.3.6</pre></li>
#* for example:
</ol>
<pre>
jack-audio-connect-kit-1.9.4
qjackctl-0.3.6
</pre>

Latest revision as of 04:21, 3 July 2010

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