LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS Questions (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-questions-74131/)

cclavey 07-19-2003 03:00 PM

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

Dark_Helmet 07-19-2003 03:10 PM

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...

itsjustme 07-19-2003 03:46 PM

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...


All times are GMT -5. The time now is 01:44 AM.