wiki:centos:repo_sync

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
wiki:centos:repo_sync [2015/05/25 17:08] wikiadminwiki: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=/var/ftp/centos/7/base/x86_64 \ +#################################################################### 
-        && createrepo -/var/ftp/centos/7/base/x86_64/comps.xml /var/ftp/centos/7/base/+
 +# Script, um die CentOS 7 Repos herunterzuladen und ein eigenständiges 
 +# Repo aufzubauen 
 +
 +
 +#################################################################### 
 + 
 +repo_path="/var/ftp/centos/7/" 
 + 
 +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/comps.xml $repo_path/base
 + 
 +textbox extras-Repo 
 +reposync --gpgcheck -l --downloadcomps --repoid=extras --norepopath --download_path=$repo_path/extras/x86_64 \ 
 +        && createrepo $repo_path/extras/ 
 + 
 +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/epel/x86_64/comps.xml $repo_path/epel/
  
-reposync --gpgcheck -l --downloadcomps --repoid=extras --norepopath --download_path=/var/ftp/centos/7/extras/x86_64 \ 
-        && createrepo /var/ftp/centos/7/extras/ 
  
-reposync --gpgcheck -l --downloadcomps --repoid=updates --norepopath --download_path=/var/ftp/centos/7/updates/x86_64 \ 
-        && createrepo /var/ftp/centos/7/updates/ 
  
-reposync --gpgcheck -l --downloadcomps --repoid=epel --norepopath --download_path=/var/ftp/centos/7/epel/x86_64 \ 
-        && createrepo -g /var/ftp/centos/7/epel/x86_64/comps.xml /var/ftp/centos/7/epel/ 
 </file> </file>
  
  • wiki/centos/repo_sync.1432566491.txt.gz
  • Zuletzt geändert: 2015/05/25 17:08
  • von wikiadmin