LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-24-2004, 01:51 AM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
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..
 
Old 07-06-2004, 03:42 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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...
 
Old 07-06-2004, 05:14 AM   #3
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Just using '--exclude-directories=source', or even '-X source', will exclude _all_ directories named source.........
 
Old 01-12-2008, 04:56 AM   #4
cbonar
Member
 
Registered: Apr 2004
Location: Paris, FRANCE
Distribution: Ubuntu
Posts: 54

Rep: Reputation: 16
Quote:
Originally Posted by thegeekster View Post
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 ?.

Last edited by cbonar; 01-12-2008 at 05:02 AM. Reason: + forgot to ask my question :S
 
Old 01-12-2008, 05:12 AM   #5
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
The OP could probably just download the CD1 and CD2 images , I think.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WGET: How do I cancel a download? PionexUser Linux - Software 3 12-06-2005 12:30 PM
wget wont download ?? paul_mat Linux - Software 1 11-01-2005 12:45 AM
download/save a site- wget kpachopoulos Linux - Software 1 07-26-2005 12:22 PM
wget download all files of certain type GT_Onizuka Linux - Software 1 05-10-2004 08:33 PM
what to do with 5 parts of wget download Bruce Hill Linux - Software 2 09-11-2003 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration