[SOLVED] How to download the source files from command line
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
How to download the source files from command line
I built LFS successfully. It can ping "google.com". I noticed that it has ftp installed. Can I use this to download other tar.gz files from internet? Or what other commands can I use from a basic newly built LFS?
I did quick google search. But they all mention about "wget" which is not installed on a basic LFS.
LFS is very basic (only provides the essentials needed), to a point that it isn't really useful/workable. If you have build LFS to use on a daily base and not 'just' as an exercise, you need to have a look at BLFS.
BLFS is the icing on the cake. It is a collection of programs and dependencies that you can choose from to make your LFS usable. Not all packages need to be installed, just pick the ones you want/need (you do need to do chapter 3).
I was trying to do BLFS. But I did not know in advance which packages I need to install. So I wanted to avoid doing download some packages, copy them to USB stick, mount, copy to lfs, umount USB. After I did this few times, I was tired of doing it. I think I just need to do this one more time for "wget". Then I can just use "wget" to download anything else I need...
Distribution: Linux From Scratch, Slackware64, Partedmagic
Why do you not want to install wget? There is only one dependency that I know of ( openssl ) and neither takes a lot of space or effort to compile also wget is MUCH more versatile and easier to use than the basic ftp client. You won't really get very far without it it.
So I wanted to avoid doing download some packages, copy them to USB stick, mount, copy to lfs, umount USB. After I did this few times, I was tired of doing it.
I know I'm piling on to this late. And I know from other threads that yjy4321 has moved on from this point. Nevertheless I wanted to type a few additional words for the record and future readers to say that it is sort of standard operating procedure for most people around here to install first in a new LFS system the BLFS packages GPM, Wget, and Lynx. With those three, one can read the book, copy & paste with a mouse cursor from the book to another tty console, and download packages with the links and scripts in the book (if your LFS's static IP connection is working). In other words, everything one needs to be able to do to start building a BLFS system from within an independent LFS system. It's all in Chapter 9 of the book (an easy one to overlook).
For those not used to text-based browsers such as Lynx, a short learning and adjustment period is required. It's a little like learning vi as a text editor... once a few basic maneuvers are acquired, one can do most everything needed. Anyway, my usual routine is to use those things installed first to set up the firewall and then go straight for X, Fluxbox, and a file manager. Then on and on from there.