Changes between Version 24 and Version 25 of RpmHowToEndUsers


Ignore:
Timestamp:
Mar 13, 2017, 3:35:23 PM (8 years ago)
Author:
Silvan Scherrer
Comment:

simplify localrepo creation

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToEndUsers

    v24 v25  
    8585{{{
    8686[local]
    87 name=My local repo
    88 baseurl=file://<path_to_repo>
     87name = My local repo
     88baseurl = file:x%3A/<path_to_repo>
    8989enabled=1
    9090}}}
    91  3. Put your .rpm files to <path_to_repo>. The online repository is located here:
     91 3. Put your .rpm files to x:/<path_to_repo>. The online repository is located here:
    9292* http://rpm.netlabs.org/experimental/00/i386/
    9393* http://rpm.netlabs.org/release/00/i386/
     
    9595 4. Execute
    9696{{{
    97 sh -c "createrepo <path_to_repo>"
     97sh -c "createrepo x:/<path_to_repo>"
    9898}}}
    9999
    100 Note that RPM tools do not understand <path_to_repo> if it contains the drive specification. In this case you will have to add a kLIBC path rewriter entry that maps e.g. {{{/drives/p}}} to your {{{P:}}} drive and then {{{baseurl}}} will become {{{"file:///drives/p/temp/build/RPMS"}}} and for {{{createrepo}}} you will give {{{"/drives/p/temp/build/RPMS"}}}. Be sure to add a trailing / after P: in the klibc path rewriter rule.
     100As YUM doesn't understand the : after our driveletter, we need to use the %3A instead. This is the : in a URI. The x above stands for any drive, where you want to store your local rpm. <path_to_repo> stands for the local directory.
     101
     102As example:[[br]]
     103when your local repo is at q:\rpmbuild\localrepo, then you have to add in the local.repo file {{{baseurl = file:q%3A/rpmbuild/localrepo}}} and for createrepo it is {{{sh -c "createrepo q:/rpmbuild/localrepo"}}}
    101104
    102105== Note about upgrading from 2010 RPM builds ==