Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:wget [2011/05/09 05:22] – [Install Wget] tinypoodle | wiki:wget [2011/06/16 13:06] (current) – [Install GNU wget] Guy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Download | + | ====== Download using wget ====== |
| - | Wget is a text based download manager, run from the terminal. Following is a guide on how to use it. | + | wget is a text based download manager, run from the terminal. Following is a guide on how to use it. |
| - | ==== Install | + | ==== Install GNU wget ==== |
| - | wget is included in TC/MC base. | + | wget is included in Tinycore and Microcore |
| - | For a version which features more advanced options and supports ssl you might consider to install the GNU wget extension. | + | |
| ==== Copy and Paste from Text Editor ==== | ==== Copy and Paste from Text Editor ==== | ||
| Line 27: | Line 26: | ||
| < | < | ||
| - | wget http:// | + | wget http:// |
| ==== Stop or Pause a Download ==== | ==== Stop or Pause a Download ==== | ||
| Line 38: | Line 37: | ||
| < | < | ||
| - | wget -c http:// | + | wget -c http:// |
| - | ==== 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 | + | For example if you were downloading |
| < | < | ||
| - | wget -c -t 80 http:// | + | wget -c -t 80 http:// |
| + | |||
| + | ==== 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, | ||
| + | |||
| + | < | ||
| + | wget -c -t 80 http:// | ||
| + | http:// | ||
| + | http:// | ||
| + | |||
| + | ==== 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, | ||
| + | |||
| + | Using the .dep files, make a list. Like this | ||
| + | |||
| + | < | ||
| + | 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</ | ||
| + | |||
| + | Save this file in the same directory as you will be downloading to, in this example, it is / | ||
| + | |||
| + | < | ||
| + | for I in `cat xfe-files.txt`; | ||
| ==== Learn More ==== | ==== Learn More ==== | ||