diff options
author | Olivier Blin <oblin@mandriva.com> | 2010-06-16 09:18:25 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2010-06-16 09:18:25 +0000 |
commit | 3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc (patch) | |
tree | d6ded36fbeb704a0d217ea0bc5f24bb22991a8e7 /README.zeroconf | |
parent | c5580c7aba7a49df77d221c69aea3da2adc0ff8b (diff) | |
download | urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar.gz urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar.bz2 urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar.xz urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.zip |
add --zeroconf support in urpmi.addmedia
Diffstat (limited to 'README.zeroconf')
-rw-r--r-- | README.zeroconf | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/README.zeroconf b/README.zeroconf new file mode 100644 index 00000000..4df14066 --- /dev/null +++ b/README.zeroconf @@ -0,0 +1,30 @@ +urpmi can automatically find the media repository path using DNS-SD +(Zeroconf), with the "--zeroconf" option: + urpmi.addmedia --distrib --zeroconf + urpmi.addmedia --zeroconf main media/main/release + +This option can also be used together with the "--mirrorlist" option, +in which case the repositories are configured using Zeroconf if found, +and mirrorlist is used as a fallback: + urpmi.addmedia --distrib --zeroconf --mirrorlist + +When searching for the repository using Zeroconf, the request timeouts +after a delay of 10 seconds, to avoid hanging urpmi if some hosts are +unresolvable. + +If a repository is found using DNS-SD, urpmi.addmedia will build a +complete repository path using fields from /etc/product.id, this way: +<advertised repository path>/lowercase(<branch>)/<version>/<arch> + +To advertise an urpmi repository using DNS-SD, a service record with +the instance "_mdv_urpmi" has to be created, specifying the target +host and target port where the service is located. +In addition, two DNS-SD TXT records must be specified, in the form of +key/value pairs: protocol (http, ftp or rsync) and path (repository root). + +The path value should be the full path to the media repository root, +for example /dis if the distribution repository is reachable on +http://host:port/dis/official/2010.1/i586 + +See the urpmi-repository-http.service file for an example of urpmi +repository advertising using Avahi. |