Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all I am new to this board have to say nice site you guys have here. I'm a newbie when it comes to linux but right now I am ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Location
    Michigan,USA
    Posts
    2

    Using wget to download contents of entire ftp directory?


    Hello all I am new to this board have to say nice site you guys have here. I'm a newbie when it comes to linux but right now I am building a LFS so I can learn more about the inner workings of linux and create a custom build to suit my needs. Which brings me to the question I have for you. I'm trying to get the package sources I need from the ftp server but there are too many files to download them individually. Is there a way to download the entire contents of a directory using wget? If so what commands do I use to achieve this? Here is the directory I need to download: http://ftp.osuosl.org/pub/lfs/lfs-packages/6.3/
    Also is wget the best program to use for this purpose or is there another program that works better? -Thanks for your time

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    wget -r is what you need.

    But to download everything might not be necessary I guess. If you have a list that you can save on a plain text file, you can use -i to download all the files in the list

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Location
    Michigan,USA
    Posts
    2
    ok thank you I will give that a try.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •