Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| wiki:centos:repo_sync [2015/05/25 17:08] – wikiadmin | wiki:centos:repo_sync [2015/05/26 10:31] (aktuell) – [Script zum syncen der Repos] wikiadmin | ||
|---|---|---|---|
| Zeile 53: | Zeile 53: | ||
| #!/bin/bash | #!/bin/bash | ||
| - | reposync --gpgcheck -l --downloadcomps --repoid=base --norepopath --download_path=/ | + | #################################################################### |
| - | && createrepo -g /var/ftp/centos/7/base/ | + | # |
| + | # 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/base/x86_64 \ | ||
| + | && createrepo -g $repo_path/base/x86_64/ | ||
| + | |||
| + | textbox extras-Repo | ||
| + | reposync --gpgcheck -l --downloadcomps --repoid=extras --norepopath --download_path=$repo_path/ | ||
| + | && createrepo | ||
| + | |||
| + | textbox updates-Repo | ||
| + | reposync --gpgcheck -l --downloadcomps --repoid=updates --norepopath --download_path=$repo_path/updates/x86_64 \ | ||
| + | && createrepo $repo_path/updates/ | ||
| + | |||
| + | textbox epel-Repo | ||
| + | reposync --delete --gpgcheck -l --downloadcomps --repoid=epel --norepopath --download_path=$repo_path/epel/x86_64 \ | ||
| + | && createrepo -g $repo_path/ | ||
| - | reposync --gpgcheck -l --downloadcomps --repoid=extras --norepopath --download_path=/ | ||
| - | && createrepo / | ||
| - | reposync --gpgcheck -l --downloadcomps --repoid=updates --norepopath --download_path=/ | ||
| - | && createrepo / | ||
| - | reposync --gpgcheck -l --downloadcomps --repoid=epel --norepopath --download_path=/ | ||
| - | && createrepo -g / | ||
| </ | </ | ||