[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.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.