Changes between Version 1 and Version 2 of RepoTools

Show
Ignore:
Author:
skvidal (IP: 24.211.246.61)
Timestamp:
11/12/08 20:53:31 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RepoTools

    v1 v2  
    11= How To Manage Repositories = 
    22 
    3         - repomanage - pruning repositories of old cruft 
    4            - repomanage -k2 -o | xargs rm -f 
    5         - reposync - syncing down pkgs from other repos 
    6            - reposync -r 
    7            - reposync -l 
    8            - use with rhn 
     3== repomanage == 
     4 This tool lets you create lists of newer or older packages to pass to other commands. This is useful if you want to tag a specific set 
     5of packages from a directory structure. Or if you want to remove older packages. It operates on the packages directly and compares the packages by their rpm epoch, version and release. 
     6 
     7 Example: 
     8  {{{ 
     9    repomanage -k2 --old /some/dir | xargs rm -f 
     10  }}} 
     11 
     12   That will list out the older packages in the directory /some/dir, however the '''-k2''' tells it to keep 2 versions back.  
     13 
     14  
     15== reposync == 
     16 This tool lets you download an entire remote yum repository or a set of remote repositories. It will also synchronize changes in a repository with a local directory. 
     17  Examples: 
     18      Sync all packages from the ’updates’ repo to the current directory: 
     19      {{{ 
     20         reposync --repoid=updates 
     21      }}} 
     22      Sync  only  the  newest packages from the ’updates’ repo to the current directory: 
     23      {{{ 
     24         reposync -n --repoid=updates 
     25      }}} 
     26      Sync  packages  from  the  ’updates’  and ’extras’ repos to the current directory: 
     27      {{{ 
     28         reposync --repoid=updates --repoid=extras 
     29      }}} 
     30      Sync all packages from the ’updates’ repo to the repos directory: 
     31      {{{ 
     32         reposync -p repos --repoid=updates 
     33      }}} 
     34      Sync all repositories into the 'localcache' directory (each repository in its own path): 
     35      {{{ 
     36         reposync -p localcache 
     37      }}} 
     38      Sync all repositories with plugins enabled (useful for the plugins which are required to access repositories): 
     39      {{{ 
     40         reposync -l  
     41      }}} 
    942 
    1043        - good repo practices