LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   downloading alienBOB's multilib files (https://www.linuxquestions.org/questions/slackware-14/downloading-alienbobs-multilib-files-789775/)

SpelledJ 02-17-2010 01:23 PM

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?

meetscott 02-17-2010 01:34 PM

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.

rg3 02-17-2010 01:38 PM

I've detected -m ascends to the parent directory and downloads 13.0, 13.1, etc. I'd personally use "wget -r -np".

wadsworth 02-17-2010 01:48 PM

There's more than one way to do it.
Code:

lftp -c "open http://connie.slackware.com/~alien/multilib/ ; mirror 13.1"

SpelledJ 02-17-2010 09:48 PM

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.

meetscott 02-17-2010 11:19 PM

Quote:

Originally Posted by rg3 (Post 3867221)
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 ;-)


All times are GMT -5. The time now is 04:45 AM.