LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 04-22-2010, 09:49 PM   #1
ebuks97
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Installing Packages in Linux From Scratch


How to install packages for Linux from Scratch?
I am at the step of installing Binutils but i do know know how to make the directory or install the package? Any help would be appreciated
 
Old 04-23-2010, 01:27 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

All the steps you need are mentioned in the LFS book.

Package specific steps are in the chapter about that package and some general information is in the chapters before you actually start building. If you want to create a LFS system you do need to start at page one of the book and don't skip any of the chapters.

A quote from the book to answer your question:
Quote:
Before issuing the build instructions for a package, the package should be unpacked as user lfs, and a cd into the created directory should be performed.
PS: If you are not using the LFS liveCD you do need to take a good look at chapter vii. Host System Requirements. I would advise to use the LFS liveCD and not temper with your host system.

Hope this clears things up.
 
Old 04-23-2010, 03:28 AM   #3
kainosnous
Member
 
Registered: Mar 2010
Location: Tennessee, USA
Distribution: Arch, Fedora
Posts: 59

Rep: Reputation: 18
I had the same problem when I first tried LFS. Looking back, the instructions were simple, but I was just a little confused.

I make a directory inside of the lfs partition named $LFS/sources and put all of the source files in there. Then I cd to $LFS/sources. From there, unpack the package that you are about to be working on which will create a directory of that name. You will then cd into that directory and be at the place where the instructions begin for that chapter. So, for the Binutils chapter you will do something like this:

Code:
cd $LFS/sources

tar -xvf binutils-2.20.tar.bz2

cd binutils-2.20
You then can follow all the instructions for the chapter for Binutils. After you finish that chapter:

Code:
cd $LFS/soucres

rm -r binutils-2.20
Then you can go on to the next chapter. This pattern will work for the rest of the book.
 
Old 05-04-2010, 07:24 PM   #4
ebuks97
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kainosnous View Post

I make a directory inside of the lfs partition named $LFS/sources and put all of the source files in there. Then I cd to $LFS/sources. From there, unpack the package that you are about to be working on which will create a directory of that name.
[/CODE]
Ok so what is this lfs partition... I am using Virtual Box to make the LFS. I am not booting the computer from the Live CD
 
Old 05-05-2010, 12:23 AM   #5
kainosnous
Member
 
Registered: Mar 2010
Location: Tennessee, USA
Distribution: Arch, Fedora
Posts: 59

Rep: Reputation: 18
The LFS instructions require a host Linux system. You will need this to build the initial toolchain. If you don't want to use your host system, I would recommend using the LFS live CD. The reason that you need a host system is that you will have to have compilers and other tools available.

Once you have booted into a working Linux system, you can format the virtual machine's hard drive. If you follow the instructions, you should have two partitions, one being the swap space and the other being your LFS partition. Once again, if you follow the instructions you will make a variable $LFS and point that at the mount point for that partition. This is where all of your work will be done even if you are building on a virtual machine.
 
  


Reply



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
installing Linux from scratch or Gentoo without internet fakie_flip Linux - Distributions 2 01-01-2006 09:11 AM
installing red hat linux 9 from scratch... kos147 Linux - Newbie 2 09-02-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:31 PM.

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
Open Source Consulting | Domain Registration