Packages required for an absolute minimum working Linux system?
What packages are required for a bare minimum working GNU/Linux operating system to run bash?
I know I will need the Linux kernel, GRUB and bash but is there anything else required just to get it to boot to bash? |
standalone or networked?
gui or cli? etc etc.. More detail reqd. |
If all you need is booting to Bash then you also need the libraries Bash is dependent on. Try
Code:
ldd /bin/bash Quote:
|
CLI only of course! I won't have it networked for now. Just want the basics. Found the dependences needed for bash. How do it find out the dependencies for the other ones?
|
The same way. If you want to include a binary on your mini system check the dependencies with the ldd command.
|
I can't find out the dependences for GRUB. I found a wiki page that listed packages and their dependencies but I can't find that either!
|
Since Grub is a bootloader and has no real access to your system partition unless it is already working it simply has no dependencies.
|
Ah right.
For the bash dependencies, are they generated by compiling the kernel and bash? This is the list I get: ldd /bin/bash linux-vdso.so.1 => (0x00007fffbafff000) libncurses.so.5 => /lib/libncurses.so.5 (0x00007f75176f4000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f75174f0000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f751715b000) /lib64/ld-linux-x86-64.so.2 (0x00007f7517958000) |
Quote:
1. Dependencies that are needed for the software to function. The developer decided to built his software with the help of those dependencies and therefore they are mandatory. 2. Dependencies that are optional. It is for example possible to compile MPlayer without having dependencies on some codecs. This is decided on compile time by the user, not the developer. Of course only if you do it yourself, otherwise the developers of your distro will decide. In your bash example I don't know for sure, but I would think that those dependencies are of type 1. |
Personally I would say just check out something like LFS because there are probably a lot of dependencies you might not think of.
|
I have completed both LFS and BLFS and now I want to create a bare system because there was so much required in the LFS that I wouldn't make use off. It wasn't too clear as to what was required for some packages to create something as simple as a working bash system.
|
Installing a minimal distro is the best option; let the developers sort it out for you! Several distros will install just the kernel, the Gnu utilities, vi, and a package installer.
CentOS has a minimal option if you get the DVD rather than the CD (you only need the first DVD). Salix will install a core system (no X) of Slackware for you. Sabayon SpinBase is similar, and also has a variant ServerBase with an optimised kernel. |
If you really want to go minimal try Tinycore or Slitaz. Tinycore only comes as base system (If you don't want X then try Microcore instead) where you can add things. Slitaz comes with a full set of tools for making "flavors" of Slitaz, so you can very easily make one with just Bash or any other tool you want.
|
All times are GMT -5. The time now is 11:33 PM. |