LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   wget and slackware download (https://www.linuxquestions.org/questions/slackware-14/wget-and-slackware-download-197064/)

ivanatora 06-24-2004 01:51 AM

wget and slackware download
 
I want to download the new release of slackware, but don't need these source/ directories. They are everywhere, though.. How can I ignore them via the wget command line? With them the download grows two times bigger..

win32sux 07-06-2004 03:42 AM

say you wanna mirror this address, for example:

ftp://ftp.slackware.at/slackware-10.0/


normally, you'd do something like:

wget --mirror ftp://ftp.slackware.at/slackware-10.0


but since you don't want the directory called "source", you can exclude it like this:

wget --mirror --exclude-directories=slackware-10.0/source ftp://ftp.slackware.at/slackware-10.0


and if you'd wanna exclude a whole bunch of directories, it could look something like this (for example):

wget --mirror --exclude-directories=\
slackware-10.0/bootdisks,\
slackware-10.0/extra,\
slackware-10.0/pasture,\
slackware-10.0/rootdisks,\
slackware-10.0/source,\
slackware-10.0/testing,\
slackware-10.0/zipslack,\
slackware-10.0/slackware/gnome,\
slackware-10.0/slackware/kde,\
slackware-10.0/slackware/kdei,\
slackware-10.0/slackware/patches/source \
ftp://ftp.slackware.at/slackware-10.0


do a man wget for more info...

good luck...

thegeekster 07-06-2004 05:14 AM

Just using '--exclude-directories=source', or even '-X source', will exclude _all_ directories named source......... :)

cbonar 01-12-2008 04:56 AM

Quote:

Originally Posted by thegeekster (Post 1030477)
Just using '--exclude-directories=source', or even '-X source', will exclude _all_ directories named source......... :)

It's not true, I've tested it (GNU Wget 1.10.2) : it will only exclude the directory named 'source' at the top of the hierarchy.

To remove all directories named source, one must use wildcards like
Code:

--exclude-directories '*/source'
, even if it doesn't seem to work for /one/two/source -> any idea ?.

duryodhan 01-12-2008 05:12 AM

The OP could probably just download the CD1 and CD2 images , I think.


All times are GMT -5. The time now is 03:34 AM.