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/24 22:41] – wikiadmin | wiki:centos:repo_sync [2015/05/26 10:31] (aktuell) – [Script zum syncen der Repos] wikiadmin | ||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
- | 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 55: | 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 / | ||
</ | </ | ||
+ | |||
+ | ====== Quellen ====== | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | * [[https:// |