-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-01-27 19:11, Istvan Gabor wrote:
Hello:
I would like to download openSUSE 13.1 repos from download.opensuse.org/repositories directory. First I thought I could use wget but it seems it's not that easy. I don't know how I could specify wget to download only "openSUSE_13.1" directories from the tree (without writing every single path after an -I option), if it's possible at all. Any help would be appreciated.
Thanks,
Istvan
I'm running this: #!/bin/bash OPCIONES="--limit-rate=250K --no-parent --no-host-directories --timestamping --no-verbose" LOGFILE=wget_1.log echo "non-oss" | tee -a $LOGFILE echo | tee -a $LOGFILE time wget --limit-rate=500K --no-parent --no-host-directories --timestamping -r http://download.opensuse.org/distribution/13.1/repo/non-oss/ --append-output=$LOGFILE echo >> $LOGFILE echo "=====================================" >> $LOGFILE echo >> $LOGFILE echo "oss" | tee -a $LOGFILE echo | tee -a $LOGFILE time wget --limit-rate=500K --no-parent --no-host-directories --timestamping -r http://download.opensuse.org/distribution/13.1/repo/oss/ --append-output=$LOGFILE echo >> $LOGFILE echo "=====================================" >> $LOGFILE echo >> $LOGFILE echo "update" | tee -a $LOGFILE echo | tee -a $LOGFILE time wget --limit-rate=500K --no-parent --no-host-directories --timestamping -r http://download.opensuse.org/update/13.1/ --append-output=$LOGFILE echo >> $LOGFILE echo "=====================================" >> $LOGFILE echo >> $LOGFILE One entry per repository, you see. It could be simplified with function calls, but I didn't bother. Notice that these calls to wget also download some "metadata", which are quite slow to get - the mirrorlist is generated real time, I think: - -rw-r--r-- 1 cer users 216150 Sep 28 2013 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm - -rw-r--r-- 1 cer users 97 Jan 24 16:41 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.btih - -rw-r--r-- 1 cer users 315 Jan 24 16:41 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.magnet - -rw-r--r-- 1 cer users 89 Jan 24 16:41 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.md5 - -rw-r--r-- 1 cer users 18204 Jan 24 16:41 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.meta4 - -rw-r--r-- 1 cer users 19737 Jan 24 16:41 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.metalink - -rw-r--r-- 1 cer users 34117 Jan 24 00:47 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.mirrorlist - -rw-r--r-- 1 cer users 97 Jan 24 16:41 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.sha1 - -rw-r--r-- 1 cer users 121 Jan 24 16:41 gfs2-utils-3.1.6+git.1378394292.fa32906-1.2.x86_64.rpm.sha256 - -rw-r--r-- 1 cer users 172597 Sep 28 2013 gftp-2.0.19-22.1.3.x86_64.rpm - -rw-r--r-- 1 cer users 72 Jan 24 16:41 gftp-2.0.19-22.1.3.x86_64.rpm.btih - -rw-r--r-- 1 cer users 265 Jan 24 16:41 gftp-2.0.19-22.1.3.x86_64.rpm.magnet - -rw-r--r-- 1 cer users 64 Jan 24 16:41 gftp-2.0.19-22.1.3.x86_64.rpm.md5 - -rw-r--r-- 1 cer users 16075 Jan 24 16:41 gftp-2.0.19-22.1.3.x86_64.rpm.meta4 - -rw-r--r-- 1 cer users 17634 Jan 24 16:41 gftp-2.0.19-22.1.3.x86_64.rpm.metalink - -rw-r--r-- 1 cer users 29555 Jan 24 00:47 gftp-2.0.19-22.1.3.x86_64.rpm.mirrorlist - -rw-r--r-- 1 cer users 72 Jan 24 16:41 gftp-2.0.19-22.1.3.x86_64.rpm.sha1 - -rw-r--r-- 1 cer users 96 Jan 24 16:41 gftp-2.0.19-22.1.3.x86_64.rpm.sha256 Actually, what I want is only one of the checksum types, but I didn't find the right concoction. Try this: wget --limit-rate=500K --no-parent --no-host-directories --timestamping --reject .mirrorlist,.btih,.meta4,.magnet,.metalink -r http://download.opensuse.org/distribution/13.1/repo/non-oss/ It runs much faster, but the result is the rpm alone, without checksum files. I want at least one checksumtype, without the mirrorlist or metalink files. On a second step, I want to verify the checksum of all downloaded rpms. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlapYfMACgkQja8UbcUWM1xN0gD9EuHNr2r7E4EhDn1SOZlwE1cu xhHLe84cGsD8zEpBh5AA/3KBbNWjZLSe4fG1AJkXBaMKlWIqFqBcSYgd0iV0C0tV =jEvH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org