Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:wget [2011/05/18 22:31] – [Retrying] Guywiki:wget [2011/06/16 13:06] (current) – [Install GNU wget] Guy
Line 5: Line 5:
 ==== Install GNU wget ==== ==== Install GNU wget ====
  
-wget is included in Tiny Core and Microcore base. For a version which features more advanced options and supports ssl you may install the GNU wget extension.+wget is included in Tinycore and Microcore base. For a version which features more advanced options and supports ssl you may install the GNU wget extension.
  
 ==== Copy and Paste from Text Editor ==== ==== Copy and Paste from Text Editor ====
Line 39: Line 39:
 wget -c http://distro.ibiblio.org/tinycorelinux/3.x/release/tinycore_3.6.iso</code> wget -c http://distro.ibiblio.org/tinycorelinux/3.x/release/tinycore_3.6.iso</code>
  
-==== Retrying ====+==== Retry ====
  
 If downloading is stopped, wget will try again a total of 20 times. After that it will stop. If you want to change the number of times it tries again, insert -t followed by the number of times you want it to try. If downloading is stopped, wget will try again a total of 20 times. After that it will stop. If you want to change the number of times it tries again, insert -t followed by the number of times you want it to try.
  
-For example if you were downloading Tiny Core 3.6, and wanted it to try again 80 times, you could use+For example if you were downloading tinycore_3.6.iso, and wanted it to try again 80 times, you could use
  
 <code>cd /home/tc/dl <code>cd /home/tc/dl
 wget -c -t 80 http://distro.ibiblio.org/tinycorelinux/3.x/release/tinycore_3.6.iso</code> wget -c -t 80 http://distro.ibiblio.org/tinycorelinux/3.x/release/tinycore_3.6.iso</code>
 +
 +==== Download More than One File ====
 +
 +To download more than one file, you can put more than one url after each other.
 +
 +For example, if you wanted to download tinycore_3.6.iso, install-tools.gz and network-tools.gz, you could use
 +
 +<code>cd /home/tc/dl
 +wget -c -t 80 http://distro.ibiblio.org/tinycorelinux/3.x/release/tinycore_3.6.iso \
 +http://distro.ibiblio.org/tinycorelinux/3.x/starterpacks/install-tools.gz \
 +http://distro.ibiblio.org/tinycorelinux/3.x/starterpacks/network-tools.gz</code>
 +
 +==== Download a List of Files from the Same Directory ====
 +
 +You can download a list of files from the same directory.
 +
 +Let's say you want to download Xfe, all .dep files and all dependencies, and .mdt.txt files.
 +
 +Using the .dep files, make a list. Like this
 +
 +<code>xfe.tcz
 +xfe.tcz.dep
 +xfe.tcz.md5.txt
 +fox.tcz
 +fox.tcz.dep
 +fox.tcz.md5.txt
 +Xorg-7.5-lib.tcz
 +Xorg-7.5-lib.tcz.md5.txt
 +libxft.tcz
 +libxft.tcz.dep
 +libxft.tcz.md5.txt
 +fontconfig.tcz
 +fontconfig.tcz.dep
 +fontconfig.tcz.md5.txt
 +expat2.tcz
 +expat2.tcz.md5.txt</code>
 +
 +Save this file in the same directory as you will be downloading to, in this example, it is /home/tc/dl. Let's say we name it xfe-files.txt. Then use
 +
 +<code>cd /home/tc/dl
 +for I in `cat xfe-files.txt`; do wget http://distro.ibiblio.org/tinycorelinux/3.x/tcz/"$I"; done</code>
  
 ==== Learn More ==== ==== Learn More ====
Print/export
QR Code
QR Code wiki:wget (generated for current page)