Changes between Version 26 and Version 27 of RpmHowToEndUsers


Ignore:
Timestamp:
Jul 25, 2018, 7:36:28 AM (6 years ago)
Author:
Silvan Scherrer
Comment:

python understands drive letters in URI

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToEndUsers

    v26 v27  
    8686[local]
    8787name = My local repo
    88 baseurl = file:x%3A/<path_to_repo>
     88#baseurl = file:x%3A/<path_to_repo>
     89baseurl = file:x/<path_to_repo>
    8990enabled=1
    9091}}}
     
    9899}}}
    99100
    100 As YUM doesn't understand the : after our drive letter, 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.
     101As YUM didn't understand the : after our drive letter, we need to use the %3A instead. This is the : in a URI. With the recent python build it understands drive letters, so the above %3A hack isn't needed anymore. The x above stands for any drive, where you want to store your local rpm. <path_to_repo> stands for the local directory.
    101102
    102103As example:[[br]]
    103 when 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"}}}
     104when your local repo is at q:\rpmbuild\localrepo, then you have to add in the local.repo file {{{baseurl = file:q:/rpmbuild/localrepo}}} and for createrepo it is {{{sh -c "createrepo q:/rpmbuild/localrepo"}}}
    104105
    105106== Note about upgrading from 2010 RPM builds ==