Changes from Version 1 of YumGroups

Show
Ignore:
Author:
skvidal (IP: 24.211.246.61)
Timestamp:
11/04/08 20:49:01 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YumGroups

    v0 v1  
     1= Yum groups and repositories = 
     2 
     3Yum supports the group commands 
     4  * grouplist 
     5  * groupinfo 
     6  * groupinstall 
     7  * groupremove 
     8  * groupupdate 
     9 
     10Groups are read from the "group" xml metadata that is optionally available from 
     11each repository. If yum has no repositories which support groups then none of  
     12the group operations will work.  
     13 
     14 
     15 * grouplist 
     16    
     17   {{{ 
     18      yum grouplist [hidden] 
     19   }}} 
     20    
     21   This will list the installed and available groups for your system in two 
     22   separate lists. If you pass the optional 'hidden' argument then all of  
     23   the groups which are set to 'no' in the group xml <uservisible> tag. 
     24 
     25 * groupinfo 
     26  {{{  
     27     yum groupinfo groupname 
     28  }}} 
     29   
     30  This will give you detailed information for each group including: 
     31  description, mandatory, default and optional packages. 
     32 
     33 * groupinstall, groupupdate 
     34  {{{  
     35     yum groupinstall groupname 
     36     yum groupupdate groupname 
     37  }}} 
     38 
     39  Despite their differing names both of these commands perform the same 
     40  function. They will attempt to install/update all of the packages in the 
     41  group that are of the types 'default' or 'mandatory' (by default). 
     42  (To change this types of packages edit the value of the group_package_types  
     43  option in yum.conf.) And they will install any additional dependencies  
     44  needed by any of the installing/updating packages. 
     45 
     46* groupremove 
     47  {{{ 
     48     yum groupremove groupname 
     49  }}} 
     50   
     51  This will remove all packages, of any type, in the named group. It will also 
     52  remove any package that depends on any of these packages. 
     53    
     54 
     55 
     56== Setting up your own groups in your own repository == 
     57 
     58This process is pretty easy, just two steps: 
     59 1. create a file in the groups format used by yum 
     60 2. tell createrepo to include that group file in your repository. 
     61 
     62 
     63=== Step 1 === 
     64  You can either open a text editor and create the xml file matching or you 
     65  can run the yum-groups-manager command from yum-utils. An example file is  
     66  available here:  
     67   fill-in-example-url 
     68  Run the groups-create command like this: 
     69    yum-grous-manager --outfile=mygroups.xml 
     70 
     71  Follow the prompts then you'll have a functional groups file for yum in 
     72  mygroups.xml 
     73 
     74=== Step 2=== 
     75  To include this in a repository, just tell [http://createrepo.baseurl.org/ createrepo] to use it when making or remaking 
     76  your repository. 
     77 
     78  {{{  
     79     createrepo -g /path/to/mygroups.xml /srv/my/repo 
     80  }}} 
     81 
     82 
     83 
     84 
     85