Changes between Version 2 and Version 3 of RepoCreate

Show
Ignore:
Author:
Jeff (IP: 140.211.167.25)
Timestamp:
11/05/08 16:52:22 (9 years ago)
Comment:

more formating changes

Legend:

Unmodified
Added
Removed
Modified
  • RepoCreate

    v2 v3  
    1616 2. Yum uses a digest of the information stored in each RPM to do its work. This information is created using the 'createrepo' program. If you don't have createrepo installed you can install it with: 
    1717 
    18    {{{ yum install createrepo }}} 
     18   {{{ 
     19    yum install createrepo 
     20   }}} 
    1921 
    2022   If you are generating your repository on a machine that doesn't use RPMs, you can download createrepo from http://createrepo.baseurl.org/ and build/install it manually. 
    2224   Once you have createrepo installed you need to run it. It only requires one argument which is the directory in which you would like to generate the repository data. So if the packages directory we made in step 1 is in /srv/my/repo then you would run: 
    2325     
    24    {{{ createrepo /srv/my/repo }}} 
     26   {{{ 
     27    createrepo /srv/my/repo 
     28   }}} 
    2529   
    2630   You should see a lot of things fly by but it should finish without an error. In the end you should have a directory named /srv/my/repo/repodata with at least 4 files in it. Maybe more. 
    2933 
    3034   In the file you just need to include the following: 
     35 
    3136   {{{ 
    3237   [myrepo] 
    3641 
    3742   That's all you need in that file. The 'baseurl' line is the path that machine uses to get to the repository. If the machine has direct access to it or mounts it as a filesystem you can use a baseurl line like: 
    38     {{{     baseurl = file:///srv/my/repo/  }}} 
     43 
     44    {{{ 
     45     baseurl = file:///srv/my/repo/ 
     46    }}} 
    3947 
    4048      '''NB: there are 3 slashes (/) following the file:, not 2. That is correct.''' 
    4149  
    42    If you access the file via an http or https server you would use something like:  
     50   If you access the file via an http or https server you would use something like: 
     51 
    4352    {{{ 
    4453     baseurl = http://servername/my/repo 
    4554    }}} 
     55 
    4656   More details about client-side repo configuration can be found in the yum.conf man page. 
    4757 
    6171  
    6272 2. createrepo -x package_file_name: Suppose you have a few packages in your repository directory but you really don't want the unsuspecting world to see them. You can exclude packages easily with createrepo: 
     73 
    6374     {{{ 
    6475      createrepo -x filename -x filename2 -x filename* /srv/my/repo