LinuxQuestions.org
Visit Jeremy's Blog.
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 01-30-2012, 01:46 PM   #1
kpj10
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Question How and where to install packages downloaded in Unit 3? (LFS-7)


As mentioned in the book we need to install the packages as lfs user, but when I try to install it shows error permission denied (first unzip bunzip2 -dv,and then extracting tar -xvf file.tar). Even though i made lfs owner (using chown -v lfs $LFS/sources).

Is it that one needs to apply patches before extraction? If so please help me how?

Thus, i extracted the binutils-2.21.1a.tar.bz2 and installed it in root. When i do following
root@ubntu:/sources# tree
I can see the directory expanded of instaled binutils-2.21.1a.tar.bz2.
But
lfs@ubntu:/sources$ tree
It shows error opening directory next to binutils-2.21.1, though I can see all the packages in tree.
As the situation says I may not have authority to handle /sources directory. But, the command chown -v lfs $LFS/sources made lfs as the owner of directory.
So how should i install the downloaded packages?

Last edited by kpj10; 01-30-2012 at 01:50 PM.
 
Old 01-30-2012, 03:22 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

You dont install anything as root in chapter 5, it is done as user lfs.
When you down load if you are user lfs then the permissions will be yours(lfs)
You can check the permissions of the files in sources to see who owns them.

The sources dir should be lfs:root.
 
Old 01-31-2012, 08:05 AM   #3
kpj10
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,
My Linux info:
Distribution: Ubntu.
Installation: Installed in windows OS, using wubi installer.

Is the partition we created for LFS needs to store and install the downloaded packages? Or the root, both are in two different partition in my case. My case LFS partition is 10 GB, ext3, partition.


Thanks.
 
Old 01-31-2012, 08:34 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi You created a partition for lfs. You then mout it at $LFS. which is HOST /mnt/lfs You then create dir sources to store packages and build lfs. Sources is host/mnt/lfs/sources.
 
Old 01-31-2012, 01:01 PM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

So you made 2 partitions sda"y" and sda"x" you would of mounted sda"y" as
Code:
mount -v -t ext3 /dev/sda"y" $LFS
and mounted sda"x" as
Code:
mount -v -t ext3 /dev/sda"x" $LFS/root
The sources dir would be built on LFS
 
  


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
How to install downloaded packages in offline mode in Ubuntu peeyushsharma Linux - Newbie 2 09-30-2011 01:30 AM
where yum saves downloaded packages . how can i install all of these on other system amolgupta Linux - Software 3 11-22-2007 07:54 AM
How to install downloaded .deb packages to an unhooked pc parf Debian 2 11-06-2007 10:06 PM
How do I install previously downloaded *deb packages? vees Debian 4 03-21-2006 01:55 PM
Debian install error: packages.gz not pre-downloaded resipsaloquitur Linux - Newbie 0 05-19-2004 07:24 PM

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

All times are GMT -5. The time now is 02:54 AM.

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