Changes between Version 4 and Version 5 of Faq

Show
Ignore:
Author:
gjngeldenhuis (IP: 90.219.44.162)
Timestamp:
12/21/09 19:56:55 (8 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Faq

    v4 v5  
    2323 * One is to exclude it from your updates list (see man yum.conf or http://wiki.linux.duke.edu/ManYumConf)   
    2424 
    25  * Another way is to use the versionlock plugin to yum which performs a similar function.  See [https://lists.dulug.duke.edu/pipermail/yum/2005-August/007194.html this post from Panu Matilainen] for more details. 
     25 * Another way to pin package "foo" to a certain version is to use the versionlock plugin. 
     26 
     27If you are using the latest Fedora (12) then the plugin can be installed using:  
     28{{{ 
     29yum install yum-plugin-versionlock 
     30}}} 
     31 
     32 
     33To add files that you want version locked, use the following yum command: 
     34 
     35{{{ 
     36yum versionlock <package-name> 
     37}}} 
     38 
     39you can also use wildcards: 
     40 
     41{{{ 
     42yum versionlock <package-name>-* 
     43}}} 
     44 
     45This command line will add lines to:  
     46{{{ 
     47/etc/yum/pluginconf.d/versionlock.list 
     48}}} 
     49 
     50The config file uses the following format: 
     51EPOCH:NAME-VERSION-RELEASE.ARCH which can be obtained using: 
     52 
     53{{{ 
     54rpm -q <package name> --queryformat "%{EPOCH}:%{NAME}-%{VERSION}-%{RELEASE}\n " 
     55}}} 
     56 
     57 
     58If no EPOCH is specified in the package, then the number will be 0. 
     59 
     60Alternatively if you are using Redhat 5.4/Centos 5.4 or another OS 
     61that does not yet have the latest yum available you can use:  
     62{{{ 
     63yum install yum-versionlock 
     64}}} 
     65This older version of the plug-in does not extend command line flags that you can pass to yum and the lock list must be edited manually. 
     66 
     67For a manual install the source can be obtained from the current git 
     68repository for yum which is 
     69[http://yum.baseurl.org/gitweb] 
     70The files you need will be found in the ''yum-utils/plugins/versionlock'' 
     71part of the git tree. 
     72Copy versionlock.py   to ''/usr/lib/yum-plugins/versionlock.py'' 
     73Copy versionlock.conf to ''/etc/yum/pluginconf.d/versionlock.conf'' 
     74Create ''/etc/yum/pluginconf.d/versionlock.list'' 
     75All files should be ''root.root'' with ''644'' permissions. 
    2676 
    2777