tech:notes_debmirror
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_debmirror [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_debmirror [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes debmirror | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * http:// | ||
| + | * https:// | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | Voir aussi : | ||
| + | * [[GPG Trust - Faire confiance à une clef sans la signer]] | ||
| + | * [[Notes Cobbler|Cobbler]] | ||
| + | * reprepro [[Dépôt Debian APT repository]] | ||
| + | |||
| + | Bug rsync même pour http/ftp : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * http:// | ||
| + | |||
| + | ~~~bash | ||
| + | cp -p / | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~bash | ||
| + | #! /bin/bash | ||
| + | |||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | Exemple de fichier de conf | ||
| + | |||
| + | `/ | ||
| + | ~~~perl | ||
| + | # Output options | ||
| + | $verbose=1; | ||
| + | $progress=1; | ||
| + | $debug=1; | ||
| + | |||
| + | |||
| + | # Download options | ||
| + | $host=" | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | $download_method=" | ||
| + | |||
| + | |||
| + | # | ||
| + | @sections=" | ||
| + | @arches=" | ||
| + | |||
| + | |||
| + | $omit_suite_symlinks=0; | ||
| + | $skippackages=0; | ||
| + | $i18n=0; | ||
| + | $getcontents=0; | ||
| + | $do_source=1; | ||
| + | $max_batch=0; | ||
| + | $state_cache_days=0; | ||
| + | |||
| + | |||
| + | # Security/ | ||
| + | |||
| + | # C' | ||
| + | # | ||
| + | |||
| + | $ignore_release=0; | ||
| + | $check_md5sums=0; | ||
| + | $ignore_small_errors=0; | ||
| + | |||
| + | # C' | ||
| + | $cleanup=1; | ||
| + | $post_cleanup=1; | ||
| + | |||
| + | $timeout=300; | ||
| + | |||
| + | # | ||
| + | |||
| + | $dry_run=0; | ||
| + | $diff_mode=" | ||
| + | |||
| + | # The config file must return true or perl complains. | ||
| + | # Always copy this. | ||
| + | 1; | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Debmirror pour Cobbler | ||
| + | |||
| + | Laisser la conf par défaut. | ||
| + | Juste commenter les lignes suivantes `@dists=` et `@arches=` : | ||
| + | |||
| + | `/ | ||
| + | ~~~perl | ||
| + | @dists=" | ||
| + | @arches=" | ||
| + | ~~~ | ||
| + | |||
| + | Devient | ||
| + | `/ | ||
| + | ~~~perl | ||
| + | # | ||
| + | # | ||
| + | ~~~ | ||
| + | |||
| + | Puis si `cobbler check` affiche toujours un avertissement sur debmirror, redémarrer le service cobblerd | ||
| + | |||
| + | |||
| + | ## Miroir Debian complet | ||
| + | |||
| + | `maj_depoots_debian.sh` | ||
| + | ~~~bash | ||
| + | #!/bin/bash -x | ||
| + | ## Simple debmirror update script | ||
| + | http_proxy=" | ||
| + | hote=" | ||
| + | racine=" | ||
| + | methode=" | ||
| + | # | ||
| + | distribution=" | ||
| + | # | ||
| + | sections=" | ||
| + | destination="/ | ||
| + | # | ||
| + | architecture=" | ||
| + | |||
| + | ## Synchronisation du mirroir local avec ftp.fr.debian.org | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | ## Autres | ||
| + | |||
| + | ### Exemples | ||
| + | |||
| + | ~~~bash | ||
| + | debmirror --nosource --progress --md5sums -h ftp.fr.debian.org -e rsync -r :debian -d testing --getcontents / | ||
| + | |||
| + | debmirror -v --method=http -a amd64 --no-check-gpg --exclude='/ | ||
| + | |||
| + | debmirror --method=http --host=ppa.launchpad.net --root=wgrant/ | ||
| + | ~~~ | ||
| + | |||
