LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 07-19-2003, 03:00 PM   #1
cclavey
Member
 
Registered: Feb 2003
Location: N'England
Distribution: Slack 9
Posts: 194

Rep: Reputation: 30
LFS Questions


Ok, I decided to do an LFS install and I have a few questions. My main hard disk is running slack and LFS is mounted @ /mnt/lfs. Where do I download the files to? The static directory in /mnt/lfs or some place else? Thats all I can think of for right now, but I am sure I will have more later.

Thanks in advance
 
Old 07-19-2003, 03:10 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
I'd suggest placing them in /mnt/lfs/packages

Also, I'd suggest converting them all to bzip2 format. You can do that with these commands:

find /mnt/lfs/packages -name "*.gz" -exec gzip -d {} \;
find /mnt/lfs/packages -name "*.tar" -print -exec bzip2 {} \;

It'll take a while depending on your system. That's why the "-print" was added... sort of a heartbeat to let you know it's still working.

The benefit is, you'll be able to use "tar xvjf" throughout the book instead of alternating between "tar xvzf" and "tar xvjf".

Just my two cents...
 
Old 07-19-2003, 03:46 PM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
That's bascially how I'm doing it. My partition is /LFS. I created the 'static' and 'packages' directories. I copied the packages in bz2 format into the 'packages' directory. (I bought the LFS CD since I have a 56K connection and the packages in there are already bz2. I just moved them to the hard drive to speed up the process on that P-II 400 system.)
Code:
[slacker@bsslack ~] $ cd /LFS
[slacker@bsslack /LFS] $ ls -l
total 12
drwx------    2 root     root         4096 Jul 18 13:02 lost+found
drwxr-xr-x    3 lfs      root         4096 Jul 18 10:59 packages
drwxr-xr-x   11 lfs      root         4096 Jul 18 17:23 static
[slacker@bsslack /LFS] $ cd packages/temp
[slacker@bsslack /LFS/packages/temp] $ ls -l
total 28
drwxrwxr-x   11 286      wheel        4096 Jul 18 11:21 bash-2.05a
drwxr-xr-x    3 root     root         4096 Jul 18 11:34 binutils-build
drwxr-xr-x    2 lfs      users        4096 Jul 18 12:47 bzip2-1.0.2
drwxr-xr-x   10 root     root         4096 Jul 18 13:00 diffutils-2.8.1
drwxrwxrwx   10 6769     1003         4096 Jul 18 13:12 fileutils-4.1
drwxr-xr-x    8 root     root         4096 Jul 18 17:13 findutils-4.1
drwxr-xr-x   16 lfs      users        4096 Jul 18 17:22 gawk-3.1.1
[slacker@bsslack /LFS/packages/temp] $
I cd into /LFS/packages/temp and then un-tar the packages into the temp directory, something like:

lfs@bsslack:~$ cd /LFS/packages/temp
lfs@bsslack:~$ tar xjvf ../gawk-3.1.1.tar.bz2

This leaves the bz2 packages in the ../packages directory and builds the package directories separately down in the ../temp directory as shown above. Then I copy any related patch file down into the temp/packagename directory and run it and ./configure and make and make install from down in there.

And that's where I'm at so far.

regards...

Last edited by itsjustme; 07-28-2003 at 06:10 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about building LFS kornerr Linux From Scratch 9 07-29-2005 08:06 AM
Few lfs questions Tuvok Linux From Scratch 3 07-08-2003 02:11 PM
LFS Mailing List Questions... Grim Reaper Linux From Scratch 9 01-02-2003 01:02 AM
LFS questions dj_relentless Linux From Scratch 6 02-06-2002 09:53 PM
couple LFS questions glock19 Linux From Scratch 8 01-30-2002 06:07 PM


All times are GMT -5. The time now is 08:43 PM.

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