LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2016, 11:35 AM   #1
ibos
LQ Newbie
 
Registered: Sep 2016
Posts: 4

Rep: Reputation: Disabled
Why all packages to install LFS


The install tutorial should be updated.
You don't need all these tools to make linux tick.
In my opinion you only need bellow. Tried to break this in pieces and simplify it a bit. Correct me if i am wrong.

1:Gcc(Compiler) That's what is does, it compiles c,c++.
That been said, main brain for languages to compile.
2: Glibc(Of course you need c library for gcc to work.
3: Binutils (Collection of binary tools - optional)
4: Bash
5: Tar
6: Ncurses(optional)
7: Make
8: Grub
9:Linux(Kernel)

One thing i don't understand thou, why gcc is almost 90MB.
You can create a c compiler with smaller size.. i just don't get it.
2: Why Linux kernel is almost 90MB, i don't get this one either. It can be shrink to 10MB, Gcc to.

So overall size to create linux = 100MB and not 2 gig my god.

Last edited by ibos; 09-10-2016 at 11:38 AM.
 
Old 09-10-2016, 11:48 AM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,959

Rep: Reputation: Disabled
No binutils - no linker.
 
Old 09-10-2016, 02:45 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
GCC is large to allow for the use of many different CPUs. Even for Intel that would cover anything from 386 through Kaby Lake.

GCC can ALSO be supplied with the capability of cross compiling ARM/68000/Power/...
 
Old 09-10-2016, 02:48 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Quote:
Originally Posted by Emerson View Post
No binutils - no linker.
No init either - and the system won't run unless you substitute something like systemd, busybox or bash itself.

Oops - wrong package.

Last edited by jpollard; 09-10-2016 at 02:56 PM.
 
Old 09-10-2016, 03:07 PM   #5
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,959

Rep: Reputation: Disabled
This is what comes with binutils package in my Gentoo system
Code:
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/addr2line
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/ar
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/as
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/c++filt
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/dwp
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/elfedit
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/gprof
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/ld
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/ld.bfd
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/ld.gold
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/nm
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/objcopy
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/objdump
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/ranlib
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/readelf
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/size
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/strings
/usr/x86_64-pc-linux-gnu/binutils-bin/2.26.1/strip
 
Old 09-10-2016, 05:24 PM   #6
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

i make my first lfs few days ago. and i was wondering what is smallest amount of packages to make it usable.
i think all other packages are added so you dont need it add after install.

i will make another with your suggestion i like what you post
 
Old 09-10-2016, 07:00 PM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,380

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
if you have a question/problem with LFS you should post on the LFS forum, and for a workable bootable system which allows you to build/install extra packages then the LFS book is correct.
 
1 members found this post helpful.
Old 09-10-2016, 09:03 PM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Quote:
Originally Posted by end View Post
i make my first lfs few days ago. and i was wondering what is smallest amount of packages to make it usable.
i think all other packages are added so you dont need it add after install.

i will make another with your suggestion i like what you post
It all depends on what you call "usable", and "don't need".

LFS is correct in what it requires as it is providing a self hosting system (as in, it can be used to build another LFS kit, or apply updates/patches as desired).

Embedded use doesn't need a compiler, bash (though sometimes used, or is substituted by busybox), or any other packages (depending on use) other than the specific application (an example is openELEC http://openelec.tv/) on the target system.
 
1 members found this post helpful.
Old 09-10-2016, 09:10 PM   #9
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,959

Rep: Reputation: Disabled
Embedded does not need glibc either, uClibc is much smaller.
 
1 members found this post helpful.
Old 09-10-2016, 09:28 PM   #10
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Quote:
Originally Posted by Emerson View Post
Embedded does not need glibc either, uClibc is much smaller.
It all depends on the application. The smallest embedded doesn't even use an MMU.
 
1 members found this post helpful.
Old 09-11-2016, 12:02 AM   #11
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,491

Rep: Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867Reputation: 2867
As above, the argument is moot as LFS never claims to be the smallest required system. It is complete in its own right and should you choose you would like to make a smaller system, then have at it.
 
1 members found this post helpful.
Old 09-11-2016, 08:01 AM   #12
end
Member
 
Registered: Aug 2016
Posts: 188

Rep: Reputation: Disabled
re

when i wrote usable i meent, smallest amount of packages to boot to kernel and after install, that i can if i wont only have networkink on that lfs, to act like router this is example, to avoid sec issue. but i dont like speek beafore i try make it, i youst like his idea of "unnessesary" or smallest amount. i will try make this after scholl exams pass this mounts, and make up date on forum.
 
Old 09-11-2016, 08:07 AM   #13
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
That is an embedded structure - I suggest looking at OpenWRT for an example: https://openwrt.org/

I THINK it has/uses busybox for the init/shell but I'm not sure.

At a minimum, it can give you an idea of what "minimum" you actually want.
 
1 members found this post helpful.
Old 09-11-2016, 11:13 AM   #14
ibos
LQ Newbie
 
Registered: Sep 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
I cant mark this thread as solved because is not solved.

To end, You can try reading at
http://wiki.minix3.org/doku.php?id=w...asenotes-3.3.0
This os is based on microkernel. That's were it all began anyway. Linus modified the code and made a new kernel.Simple as that.
 
1 members found this post helpful.
Old 09-11-2016, 12:57 PM   #15
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Quote:
Originally Posted by ibos View Post
I cant mark this thread as solved because is not solved.

To end, You can try reading at
http://wiki.minix3.org/doku.php?id=w...asenotes-3.3.0
This os is based on microkernel. That's were it all began anyway. Linus modified the code and made a new kernel.Simple as that.
Nope.

Linus did make a new kernel, but it is not "modified" from minix.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALL LFS packages?? natchezjohn Linux From Scratch 2 01-22-2013 06:24 AM
How and where to install packages downloaded in Unit 3? (LFS-7) kpj10 Linux From Scratch 4 01-31-2012 12:01 PM
[SOLVED] LFS packages mich04 Linux From Scratch 6 10-20-2011 11:19 AM
dpkg + apt-get install: "place all packages that represent base LFS system on hold" sophanox Linux From Scratch 1 02-24-2011 02:26 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration