LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-24-2012, 09:25 PM   #1
tubb
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled
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?
 
Old 01-24-2012, 10:32 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,242

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
standalone or networked?
gui or cli?
etc
etc..

More detail reqd.
 
1 members found this post helpful.
Old 01-24-2012, 10:47 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
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
 
1 members found this post helpful.
Old 01-25-2012, 07:35 AM   #4
tubb
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-25-2012, 08:03 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
The same way. If you want to include a binary on your mini system check the dependencies with the ldd command.
 
1 members found this post helpful.
Old 01-25-2012, 08:13 AM   #6
tubb
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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!
 
Old 01-25-2012, 08:37 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Since Grub is a bootloader and has no real access to your system partition unless it is already working it simply has no dependencies.
 
1 members found this post helpful.
Old 01-25-2012, 08:45 AM   #8
tubb
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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)
 
Old 01-25-2012, 09:40 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Quote:
Originally Posted by tubb View Post
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.
 
1 members found this post helpful.
Old 01-25-2012, 11:01 AM   #10
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,437

Rep: Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879Reputation: 1879
Personally I would say just check out something like LFS because there are probably a lot of dependencies you might not think of.
 
Old 01-25-2012, 11:39 AM   #11
tubb
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.

Last edited by tubb; 01-25-2012 at 11:42 AM.
 
Old 01-25-2012, 11:42 AM   #12
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,968

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
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.

Last edited by DavidMcCann; 01-25-2012 at 11:43 AM.
 
Old 01-25-2012, 01:26 PM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
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.
 
  


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
[SOLVED] Minimum 32-bit packages required for Skype? vharishankar Slackware 2 11-06-2011 01:14 AM
Minimum packages required to install kde or gnome? cola Slackware 1 05-14-2010 11:52 AM
Minimum file system required for Embedded linux zvivered Linux - Kernel 1 09-18-2007 07:37 PM
Minimum packages required for a Custom linux toonlee Linux From Scratch 2 05-07-2006 08:18 PM
Min. required packages for minimum ready Linux bootable system. usrnm__lnx Linux - Newbie 2 07-19-2003 01:29 AM


All times are GMT -5. The time now is 12:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration