Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| wiki:centos:repo_sync [2015/05/24 22:32] – angelegt wikiadmin | wiki:centos:repo_sync [2015/05/26 10:31] (aktuell) – [Script zum syncen der Repos] wikiadmin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | |||
| ====== Repositiory synchronisieren ====== | ====== Repositiory synchronisieren ====== | ||
| - | Auf Server | + | __Auf Server__ |
| - FTP einrichten | - FTP einrichten | ||
| - | - Repo herunterladen | + | - Repo herunterladen < |
| - | < | + | - Inhaltsverzeichnis erstellen < |
| - | - Inhaltsverzeichnis erstellen | + | |
| - | < | + | |
| - | Auf Client | + | __Auf Client__ |
| - ensprechendes Repo deaktivieren '' | - ensprechendes Repo deaktivieren '' | ||
| - __oder__ Repo-Datei löschen | - __oder__ Repo-Datei löschen | ||
| Zeile 22: | Zeile 19: | ||
| enabled=1 | enabled=1 | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Repo-Datei ===== | ||
| Eine fertige .repo-Datei könnte wie folgt aussehen | Eine fertige .repo-Datei könnte wie folgt aussehen | ||
| Zeile 45: | Zeile 45: | ||
| baseurl=ftp:// | baseurl=ftp:// | ||
| enabled=1 | enabled=1 | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Script zum syncen der Repos ===== | ||
| + | |||
| + | <file bash repo_sync.sh> | ||
| + | #!/bin/bash | ||
| + | |||
| + | #################################################################### | ||
| + | # | ||
| + | # Script, um die CentOS 7 Repos herunterzuladen und ein eigenständiges | ||
| + | # Repo aufzubauen | ||
| + | # | ||
| + | # | ||
| + | #################################################################### | ||
| + | |||
| + | repo_path="/ | ||
| + | |||
| + | function textbox () { | ||
| + | cat << EOF | ||
| + | |||
| + | ****************************** | ||
| + | * $1 | ||
| + | ****************************** | ||
| + | |||
| + | EOF | ||
| + | } | ||
| + | |||
| + | textbox base-Repo | ||
| + | reposync --gpgcheck -l --downloadcomps --repoid=base --norepopath --download_path=$repo_path/ | ||
| + | && createrepo -g $repo_path/ | ||
| + | |||
| + | textbox extras-Repo | ||
| + | reposync --gpgcheck -l --downloadcomps --repoid=extras --norepopath --download_path=$repo_path/ | ||
| + | && createrepo $repo_path/ | ||
| + | |||
| + | textbox updates-Repo | ||
| + | reposync --gpgcheck -l --downloadcomps --repoid=updates --norepopath --download_path=$repo_path/ | ||
| + | && createrepo $repo_path/ | ||
| + | |||
| + | textbox epel-Repo | ||
| + | reposync --delete --gpgcheck -l --downloadcomps --repoid=epel --norepopath --download_path=$repo_path/ | ||
| + | && createrepo -g $repo_path/ | ||
| + | |||
| + | |||
| </ | </ | ||
| + | |||
| + | ====== Quellen ====== | ||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||