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 02-17-2010, 01:23 PM   #1
SpelledJ
Member
 
Registered: Jun 2006
Location: Birmingham, AL
Distribution: Slackware64-13.1, 12.1
Posts: 119

Rep: Reputation: 20
downloading alienBOB's multilib files


Is there an easy way to get all of the multilib files from connie.slackware.com/~alien/multilib? I've tried:

1.) wget - won't use wildcards on an http server, and trying to get the whole folder just gets me index.html
2.) ftp - it's not an ftp server and I can't login anonymously via gftp. I wasn't expecting this to work, it was just something else to try.
3.) rsync - If this could work, I may not be using the right syntax. I tried (-n for a dry run first):

Code:
rsync -avn http://connie.slackware.com/~alien/multilib/13.1/ .
And it just sat there doing nothing until I hit ctl-c.

Obviously I could download each file from my web browser but I figured there had to be a more elegant Unix-y way without all the clicky-clicky. Are the files hosted on an ftp server anywhere?
 
Old 02-17-2010, 01:34 PM   #2
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 42
You want something like this:
wget -m -nH --cut-dirs=3 http://connie.slackware.com/~alien/multilib/13.0/

Try not to slam him too much. You might want a slight variation on this, but this is the general idea. Like --cut-dirs=3 means cut ~alien, multilib, and 13.0 from the directory tree.
 
Old 02-17-2010, 01:38 PM   #3
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 512

Rep: Reputation: Disabled
I've detected -m ascends to the parent directory and downloads 13.0, 13.1, etc. I'd personally use "wget -r -np".
 
Old 02-17-2010, 01:48 PM   #4
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 64
There's more than one way to do it.
Code:
lftp -c "open http://connie.slackware.com/~alien/multilib/ ; mirror 13.1"
 
Old 02-17-2010, 09:48 PM   #5
SpelledJ
Member
 
Registered: Jun 2006
Location: Birmingham, AL
Distribution: Slackware64-13.1, 12.1
Posts: 119

Original Poster
Rep: Reputation: 20
I ended up trying wadsworth's lftp suggestion after reading the manpage. I didn't know I even had that program, but it looks very powerful. I've had a lot of frustrations with wget, but it looks like it would also do what I wanted with some more research.

Thanks for all of your suggestions. Lftp worked perfectly and I've got the multilib packages now. I can also use it to get the KDE 4.4 packages too.
 
Old 02-17-2010, 11:19 PM   #6
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 42
Quote:
Originally Posted by rg3 View Post
I've detected -m ascends to the parent directory and downloads 13.0, 13.1, etc. I'd personally use "wget -r -np".
I like this according to the man page, but it ends up downloading everything to this directory:
connie.slackware.com/~alien/multilib/13.0/

So it sure works, but I just like getting the files where I expect them. Cuts out other steps later.

My original solution is more useful for downloading a whole distribution which does have a directory tree. This works well for FTP but for HTTP, it downloads other website files you are not interested in. Not good. So I made an improvement.
Code:
wget -m -nH -nd -A .txz http://connie.slackware.com/~alien/multilib/13.0/
This will only download the files in the specified directory that end in .txz.

Am I missing anything? What is the problem with ascending to the parent directory? Does that do something nasty I shouldn't be doing? I'm thinking this is a really good solution now. Bravo for making me think about it a little harder ;-)

Last edited by meetscott; 02-17-2010 at 11:21 PM.
 
  


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
Slackware64 & The Multilib Files. Should They Be Part of The Default Install. Alexvader Slackware 89 04-08-2010 05:34 PM
Wrapper script for alienBob's rsync_slackware_patches.sh ? Yalla-One Slackware 4 12-10-2009 07:18 AM
while downloading html files it becomes mp3 files tam Linux - Newbie 3 08-28-2007 03:33 AM
Downloading Files? BajaNick General 3 07-30-2003 01:34 AM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration