LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Packages required for an absolute minimum working Linux system? (https://www.linuxquestions.org/questions/linux-newbie-8/packages-required-for-an-absolute-minimum-working-linux-system-925556/)

tubb 01-24-2012 09:25 PM

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?

chrism01 01-24-2012 10:32 PM

standalone or networked?
gui or cli?
etc
etc..

More detail reqd.

TobiSGD 01-24-2012 10:47 PM

If all you need is booting to Bash then you also need the libraries Bash is dependent on. Try
Code:

ldd /bin/bash
to see which libraries are needed.

Quote:

Originally Posted by chrism01
gui or cli?

Didn't know there is a GUI version of Bash ;)

tubb 01-25-2012 07:35 AM

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?

TobiSGD 01-25-2012 08:03 AM

The same way. If you want to include a binary on your mini system check the dependencies with the ldd command.

tubb 01-25-2012 08:13 AM

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!

TobiSGD 01-25-2012 08:37 AM

Since Grub is a bootloader and has no real access to your system partition unless it is already working it simply has no dependencies.

tubb 01-25-2012 08:45 AM

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)

TobiSGD 01-25-2012 09:40 AM

Quote:

Originally Posted by tubb (Post 4584076)
For the bash dependencies, are they generated by compiling the kernel and bash?

It depends. There are two types of dependencies for software:
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.

grail 01-25-2012 11:01 AM

Personally I would say just check out something like LFS because there are probably a lot of dependencies you might not think of.

tubb 01-25-2012 11:39 AM

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.

DavidMcCann 01-25-2012 11:42 AM

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.

TobiSGD 01-25-2012 01:26 PM

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.