Hey, my fellow LFS'ers :)
the BLFS book online has the following statement and warning:

"To overcome this problem, the BLFS Team, with the assistance of Server
Beach <http://www.serverbeach.com/>, has made an HTTP/FTP site available at
*anduin.linuxfromscratch.org*. This site has all the sources of the exact
versions of the packages used in BLFS. If you can't find the BLFS package
you need, get it there.

We would like to ask a favor, however. Although this is a public resource
for you to use, please do not abuse it. We have already had one unthinking
individual download over 3 GB of data, including multiple copies of the
same files that are placed at different locations (via symlinks) to make
finding the right package easier. This person clearly did not know what
files he needed and downloaded everything. The best place to download files
is the site or sites set up by the source code developer. Please try there
first ."

To this end, I made the following little command, that extracts all the
software tarball links from the book, and downloads them. I mean, who the
heck wants to click on links when we can do this:

~$ wget -nc $(grep -h -e
'\([1-z]\(.\|/\)\+\).\(bz2\|xz\|zip\|gz\|gzip\|patch\)' $(find
../../../Documents/blfs/  -type f -name '*.html') | sed -e 's@^\s\+@@' -e
's:</a>:\n:' -e 's:">:\n:' | grep '^\(ht\|ft\)' | sort -u -t: -k 2)

replace ../../../Documents/blfs/ with the root directory of your local copy
of the book. Then, you get the software from the recommended place without
overloading anybody's server. If you're like me, and are sort of catch as
catch can on internet access, you can have all of the packages you might
need, even if you build 32 bit for one box, and 64 bit for another. I don't
know if anyone will find this useful, but I found it useful for myself. And
I got to learn about regular expressions and several command line tools :)

greatest of luck to you!

david vann
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to