Changes between Version 1 and Version 2 of YumPackageUpdates

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
02/09/09 21:00:06 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YumPackageUpdates

    v1 v2  
    11= Package updates in yum = 
    22 
    3 == Simple case == 
     3== Package update, simple == 
    44 
    5  * pkgA-1 is installed 
    6  * pkgA-2 is available 
     5A new version is released upstream, or just within the repo. with local patch(es): 
    76 
    8 In this case pkgA will be updated to pkgA-2. 
     7 * pkgA-1.2.3-4 is installed 
     8 * pkgA-2.3.4-5 is available 
     9 
     10In this case pkgA just updating the version in the package and rebuild, and pkgA will be updated to the new version. This is what happens 99% of the time. 
     11 
     12== Package rename == 
     13 
     14A new version is released, but it changes the name: 
     15 
     16 * pkgA-1.2.3-4 is installed 
     17 * pkgB-2.3.4-5 is available 
     18 
     19The usual thing to do here is to have: 
     20 
     21  # pkgB-2.3.4-5 
     22  Obsoletes: pkgA <= 1.2.3-4 
     23 
     24Now pkgA will be updated to pkgB. However note that pkgA-1.2.3-4 can be installed via. rpm, after pkgB is installed. You may want to have something like: 
     25 
     26  # pkgB-2.3.4-5 
     27  Provides: pkgA 
     28 
     29...for compatibility with packages which "Requires: pkgA" 
     30 
     31== Package split == 
     32 
     33A package splits some of it's data into a sub-package: 
     34 
     35 * pkgA-1.2.3-4 is installed 
     36 * pkgA-2.3.4-5 is available 
     37 * pkgA-foo-2.3.4-5 is available 
     38 
     39This is a similar problem to the rename, except that we are renaming some of pkgA to one place and some to another (the same place): 
     40 
     41  # pkgA-foo-2.3.4-5 
     42  Obsoletes: pkgA <= 1.2.3-4 
     43  # pkgA-2.3.4-5 
     44  Obsoletes: pkgA <= 1.2.3-4 
     45 
     46Now pkgA will be updated and pkgA-foo installed. Note that if you don't have the Obsolete in pkgA then it will work as a rename, which is probably not what you want. 
     47 
     48== Package merge == 
     49 
     50A package merges a sub-package into the main package: 
     51 
     52 * pkgA-1.2.3-4 is installed 
     53 * pkgA-foo-1.2.3-4 is installed 
     54 * pkgA-2.3.4-5 is available 
     55 
     56This is basically the same problem as a rename, so the solution is the same: 
     57 
     58  # pkgA-2.3.4-5 
     59  Obsoletes: pkgA-foo <= 1.2.3-4 
     60 
     61Now pkgA will be updated and automatically remove the old pkgA-foo-1.2.3-4. 
     62